What's the most efficient way to isolate a connected region in a binary image given a point contained within that region?
이전 댓글 표시
I have a series of binary images with various numbers of 8-connected regions within them. Given a single coordinate lying within one of those regions, what is the most efficient way to generate a binary image that isolates only the connected region containing that point?
For example, given the top image and a single coordinate somewhere in the central region, how can I most efficiently produce the bottom image?
I'm currently doing this using progressive imdilate operations with a 3x3 square SE until I find a stable image. This method seems very inefficient, though, and since I'm doing this kind of operation millions of times within my program, I want to know if I can be doing much better. Any advice from the image processing experts out there?
Thanks,
Andrew

...

채택된 답변
추가 답변 (1개)
Chad Greene
2014년 2월 28일
1 개 추천
Have you looked at the bwboundaries function?
카테고리
도움말 센터 및 File Exchange에서 Morphological Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!