How can I plot histogram matlab to uiaxes APP designer?
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jenifer NG
el 15 de Ag. de 2022
Comentada: Cris LaPierre
el 16 de Mayo de 2025
Hi Everyone,
Could some one know how to plot histogram of an image to uiaxes ?
This is my code:
v = videoinput("winvideo", 2, "YUY2_640x480"); % capure image from webcam
v.ReturnedColorspace = "grayscale"; % convert to gray
v.ROIPosition = [133 114 410 300]; % crop image
snapshot1 = getsnapshot(v); % capture image
imhist(snapshot1,app.UIAxes) % Plot historam

Thanks all!
Han
0 comentarios
Respuesta aceptada
Cris LaPierre
el 15 de Ag. de 2022
imhist is not supported in App Designer yet (as best I can tell). However, you may be interested in this example, which uses histogram instead to show the red, green and blue content of an image.
Or open directly in MATLAB with the following command
openExample('matlab/AppdImageHistogramsExample')
3 comentarios
Will Reeves
el 16 de Mayo de 2025
Hi, just wondering if you know if imhist will ever be supported in App Designer? Seems like every plot type should be supported really?
Cris LaPierre
el 16 de Mayo de 2025
You could try the approach @Adam Danz describes here: https://www.mathworks.com/matlabcentral/answers/705623-using-dendrogram-in-app-designer#answer_587838
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!