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

6 vues (au cours des 30 derniers jours)

Réponses (1)

Image Analyst
Image Analyst le 5 Avr 2015
Simply pass in 4 as the second argument indicating that you want to consider it as 4-connected.
labeledImage = bwlabel(binaryImage, 4);
  2 commentaires
Amir
Amir le 5 Avr 2015
SIR, its a built in function, i need an alternative code?
Image Analyst
Image Analyst le 5 Avr 2015
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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Computer Vision Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by