How to use imshow in a panel?
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (1)
Subhadeep Koley
le 10 Fév 2020
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 commentaires
Voir également
Catégories
En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!