i want an algorithm to convert an 8 connected labelling into a 4 connected labelling on this binary image ?

조회 수: 5 (최근 30일)

답변 (1개)

Image Analyst
Image Analyst 2015년 4월 5일
Simply pass in 4 as the second argument indicating that you want to consider it as 4-connected.
labeledImage = bwlabel(binaryImage, 4);
  댓글 수: 2
Image Analyst
Image Analyst 2015년 4월 5일
Why? Is it homework? Is so, you should have added the tag homework and mentioned that first. Here is a link to the algorithm that you can program up yourself from scratch: http://en.wikipedia.org/wiki/Connected-component_labeling

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by