필터 지우기
필터 지우기

finding a closed region

조회 수: 2 (최근 30일)
Emre
Emre 2011년 2월 9일
i want to find closed regions, whose intensity values are all 255, in an image matrix. is there a function to do it directly or is there another way?
thanks

채택된 답변

Brett Shoelson
Brett Shoelson 2011년 2월 9일
Create a mask of your regions (blobs). Then use the fourth syntax of REGIONPROPS to specify both the mask and the intensity image. With that syntax, you can calculate the 'PixelValues' of each blob, and use whatever test you want to classify them.
Alternatively, for this simple case, you can request 'MinIntensity' and 'MaxIntensity' properties of the blobs. Then, if min==255 AND max==255, all pixels in the region must be 255.
Cheers,
Brett

추가 답변 (1개)

Sean de Wolski
Sean de Wolski 2011년 2월 9일
Imap = I == 255;
What do you mean by "closed regions"?

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by