regionprops
古いコメントを表示
I would like someone to give me a good example to understand the use of regionprops with 'PixelList' as a parameter
3 件のコメント
Right Grievous
2013 年 3 月 25 日
Thank you all, but I don't have the image processing toolbox (hence my problem) otherwise I would have figured out how to use regionprops myself.
I suspect the reason I can't find a solution to this is because there is a toolbox function.
Is there any way to do it without the image processing toolbox?
Thanks,
Rod.
Walter Roberson
2013 年 3 月 25 日
Rod, you have not indicated what your question is.
Note: the Image Processing Toolbox is included with the Student Version license, but is not necessarily installed by default.
Amit Kumar
2020 年 8 月 14 日
You can use Online MATLAB for assessing Image Processing Toolbox. Even I was not having it, but on Online MATLAB platform its available.
採用された回答
その他の回答 (1 件)
Saneem Ahmed
2011 年 3 月 31 日
2 投票
regionprops is a function which is used on a labeled image. If we are having an image im. let it be a black and white image( values are either 1's or 0's). Now apply bwlabel to label image for this image.
[label n]=bwlabel(im); %n gives number of clusters, no.of groups of 1's. 0's are considered to be background.
now the label image can be put as input to regionprops to find certain characteristics about each clusters in the image. regionprops can give us area, bounding box, centroid, eccentricity etc of each cluster. 'PixelList' in regionprops will return pixel co-ordinates of each element in cluster. code can be like...
pix = regionprops(label.'PixeList');
list1=pix(1).PixelList; % we have to access like this coz regionprops gives output as a structure. similarly we can access every cluster.
listn=pix(n).PixelList;
1 件のコメント
Sean de Wolski
2011 年 3 月 31 日
It's also to be used with BWCONNCOMP, a much more powerful function.
カテゴリ
ヘルプ センター および File Exchange で Region and Image Properties についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!