How to use imshow in a panel?
조회 수: 6 (최근 30일)
이전 댓글 표시
I'm using App Designar, I have this interface with a Panel
![Sin título.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/270488/Sin%20t%C3%ADtulo.png)
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에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!