how to generate histograms for superpixel?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Image Analyst
2017 年 4 月 22 日
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
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!