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!