Imshow on Parallel Computing Toolbox
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (3)
Daniel Golden
il 29 Apr 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
il 29 Apr 2014
Modificato: Dimitris Vayenas
il 29 Apr 2014
0 voti
kinjal shah
il 6 Mar 2015
0 voti
what is about the imshow error? what is solution?
2 Commenti
shital shinde
il 13 Feb 2020
Modificato: shital shinde
il 13 Feb 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
il 13 Feb 2020
You already asked two questions on this topic.
Categorie
Scopri di più su Startup and Shutdown in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!