How to use imshow in a panel?
    6 ビュー (過去 30 日間)
  
       古いコメントを表示
    
I'm using App Designar, I have this interface with a Panel

When you push in the bottom, starts a function that show an image and then update the image painting things, then another image, then update it...
This is the code:
     frameRGB = read(vidReader,i);
      frameGray = rgb2gray(frameRGB);
      flow = estimateFlow(opticFlow,frameGray);
      figure(1);imshow(frameRGB);impixelinfo
      hold on
I need to show this image and their subsequent updates in the panel and not in the figure. The panel is app.myPanel
採用された回答
その他の回答 (1 件)
  Subhadeep Koley
    
 2020 年 2 月 10 日
        You can create a child uiaxis for the uipanel parent and specify the uiaxis handle as parent while using imshow.
frameRGB = read(vidReader, i);
frameGray = rgb2gray(frameRGB);
flow = estimateFlow(opticFlow, frameGray);
ax1 = uiaxes(app.myPanel);
imshow(frameRGB, 'Parent', ax1);
hold on
0 件のコメント
参考
カテゴリ
				Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!