Finding Connected components to a particular pixel in binary image
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
I have a binary image with many blobs. I want to know all the connected pixels to a particular pixel whose index I know before hand. How do i do that?
댓글 수: 0
답변 (1개)
KALYAN ACHARJYA
2017년 12월 12일
편집: KALYAN ACHARJYA
2017년 12월 12일
% Try following
CC=bwconncomp(binary_image); % Default 8 Pixel connected you can change it by
cc=bwconncomp(binary_image,disired_connected_value);
% For detail visit following link
https://in.mathworks.com/help/images/ref/bwconncomp.html
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!