Imshow on Parallel Computing Toolbox
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (3)
Daniel Golden
el 29 de Abr. de 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
el 29 de Abr. de 2014
Editada: Dimitris Vayenas
el 29 de Abr. de 2014
0 votos
kinjal shah
el 6 de Mzo. de 2015
0 votos
what is about the imshow error? what is solution?
2 comentarios
shital shinde
el 13 de Feb. de 2020
Editada: shital shinde
el 13 de Feb. de 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
el 13 de Feb. de 2020
You already asked two questions on this topic.
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!