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

1 次查看(过去 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);

Community Treasure Hunt

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

Start Hunting!

Translated by