Remove larger connected components based on pixels
조회 수: 4 (최근 30일)
이전 댓글 표시
bwareaopen(bw,p) can delete pixels of connected components below p pixels. I want to delete the connected components above p pixel.
Say, if a connected component has 19 pixel, & we set p =20, bwareaopen() can delete that component. But, I need to delete connected component that has ,say 51 pixels in it. A function to remove larger connected components (above the threshold "p").
댓글 수: 0
채택된 답변
추가 답변 (1개)
Eric Lin
2015년 6월 15일
This answer provides a nice solution to your question.
Basically, to delete components greater than a threshold, use a logical complement and AND operation to mask out the larger components.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!