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

5 views (last 30 days)

Answers (1)

Image Analyst
Image Analyst on 5 Apr 2015
Simply pass in 4 as the second argument indicating that you want to consider it as 4-connected.
labeledImage = bwlabel(binaryImage, 4);

Categories

Find more on Computer Vision Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!