How to get the edge of a pile of white dots?
조회 수: 1 (최근 30일)
이전 댓글 표시
I v transferred a picture into b&w and it now looks like a pile of white dots with black background.
How can i get the specific area of there dots, and show the whole area in white color from this picture?
댓글 수: 0
채택된 답변
Walter Roberson
2012년 6월 22일
regionprops( double(BW), 'Area')
The purpose of the double() there is to prevent BW from being a logical matrix, because if BW is a logical matrix then regionprops() will automatically do an object labeling, whereas you just want the total (I guess?) Or if you want clusters to be analyzed then
regionprops( logical(BW), 'Area')
and that will return a structure array that you can later total the areas of.
댓글 수: 0
추가 답변 (1개)
Image Analyst
2012년 6월 22일
See my BlobsDemo image segmentation tutorial. It does that. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!