I'm using App Designar, I have this interface with a Panel
Sin título.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

 채택된 답변

GDelga
GDelga 2020년 2월 10일

1 개 추천

I solved this turning the panel into an axe and then:
line([0,N],[500,550],'LineWidth',3,'Color','#7E2F8E', 'Parent', panel);

추가 답변 (1개)

Subhadeep Koley
Subhadeep Koley 2020년 2월 10일

2 개 추천

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

카테고리

도움말 센터File Exchange에서 Environment and Settings에 대해 자세히 알아보기

질문:

2020년 2월 7일

답변:

2020년 2월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by