how to generate histograms for superpixel?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have an RGB image converted into Lab image. Generated 44 superpixels and calculated MeanIntensities and pixellist and centroids.How to generate histograms for each superpixel?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 22 Apr. 2017
You can loop over the properties extracted by regionprops
props = regionprops(labeledImage, superPixelImage, 'PixelValues');
for k = 1 : length(props)
% Get the pixel values of this region alone:
thesePixelValues = props(k).PixelValues;
% Histogram this region's gra levels.
counts = imhist(thesePixelValues);
% Now do something with counts....
end
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!