How to show area on image?
2 ビュー (過去 30 日間)
古いコメントを表示
Hi, I'm using region props to calculate area,convex hull and euler number of every component in an image, but I don't know which element of the resulting array corresponds to which component. Is there a way that I could display the area of each component on the image as it is very confusing for me to find out which component is in column 1 or 2. Any help would be appreciated.
0 件のコメント
回答 (1 件)
Image Analyst
2016 年 5 月 22 日
See my Image Segmentation Tutorial: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
Note how I ask regionprops for the centroids and then I use text() to place a label at each centroid. That's one way. If you were thinking of something else, like overlaying a colored patch or outline, let me know.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!