Imshow on Parallel Computing Toolbox
Afficher commentaires plus anciens
I am converting my code to utilise the Parallel Computing Toolbox and I am getting a peculiar error in an imshow instruction:
Error using imshow (line 209) IMSHOW unable to display image.
Error in GPUDemo (line 9) parfor (HSize = 1:n);
Caused by: Error using imshow (line 209) IMSHOW unable to display image.
line 209 of Imshow is the error message:
if ~images.internal.isFigureAvailable() error(message('images:imshow:needJavaFigure')); end
The error appears only when I use the matlabpool.
Obviously I am using many pools in order to have each pool applying a different value for a parameter (eg. HSize or Sigma in an imfilter) to the image
So I cant quite get the Aprils fool joke here: http://blogs.mathworks.com/steve/?s_cid=global_nav :(
Thank you.
Réponse acceptée
Plus de réponses (3)
Daniel Golden
le 29 Avr 2014
I'm running R2014a and the image and imagesc functions do work within parfor loops, although the imshow function does not. If you substitute image for imshow, follow it with this command to get similar results:
axis image off
However, the pixels shown on the screen won't be 1:1 like they are by default with the imshow command.
Dimitris Vayenas
le 29 Avr 2014
Modifié(e) : Dimitris Vayenas
le 29 Avr 2014
0 votes
kinjal shah
le 6 Mar 2015
0 votes
what is about the imshow error? what is solution?
2 commentaires
shital shinde
le 13 Fév 2020
Modifié(e) : shital shinde
le 13 Fév 2020
anybody please tell me how to convert matlab code into many core and multi core. I attached the file for image watermarking. but i want to perform parallelization on it. please help me for code.
Walter Roberson
le 13 Fév 2020
You already asked two questions on this topic.
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!