How can I plot histogram matlab to uiaxes APP designer?
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jenifer NG
am 15 Aug. 2022
Kommentiert: Jenifer NG
am 15 Aug. 2022
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1098520/image.png)
Thanks all!
Han
0 Kommentare
Akzeptierte Antwort
Cris LaPierre
am 15 Aug. 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')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Histograms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!