Imshow on Parallel Computing Toolbox
이전 댓글 표시
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.
채택된 답변
추가 답변 (3개)
Daniel Golden
2014년 4월 29일
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
2014년 4월 29일
편집: Dimitris Vayenas
2014년 4월 29일
0 개 추천
kinjal shah
2015년 3월 6일
0 개 추천
what is about the imshow error? what is solution?
댓글 수: 2
shital shinde
2020년 2월 13일
편집: shital shinde
2020년 2월 13일
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
2020년 2월 13일
You already asked two questions on this topic.
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!