フィルターのクリア

how to update GUI functions

1 回表示 (過去 30 日間)
Sherif Uni
Sherif Uni 2016 年 1 月 15 日
コメント済み: Image Analyst 2016 年 1 月 15 日
Hi I am making a GUI tolkit for my image segmentation. each time I get an image from the dataset and I show a selected segmentation process ( which will be selected from pop up menu) on the axes. But the problem is that each time I change the settings, my GUI input is not updated and I have to close the GUI window and run from the beginning. How can I solve this problem? Thanks

回答 (1 件)

Image Analyst
Image Analyst 2016 年 1 月 15 日
Are you sure you're calling imshow() to display the image? If it's in an intensive loop, you might have to call drawnow after you call imshow() to force it to update the display.
  2 件のコメント
Sherif Uni
Sherif Uni 2016 年 1 月 15 日
I just use imshow not draw now. It also shows my image. But imagine, I have 2 axes on my GUI. on the first one I show my original image. when I adjust some settings the results are shown on the second axes. Now I want to select another original image to see the results on that. I browse the image but it is shown on the second axes not the first one. thanks
Image Analyst
Image Analyst 2016 年 1 月 15 日
You can call axes() to switch the current axes:
axes(handles.axes1);
imshow(firstImage);
axes(handles.axes2);
imshow(secondImage);
% Now back to the first one
axes(handles.axes1);
imshow(thirdImage);

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDisplay Image についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by