can anyone provide a code for converting an connected binary component labelling into a 4-connected labelling??
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Amir
am 6 Apr. 2015
Kommentiert: Image Analyst
am 7 Apr. 2015
I want to convert this 8 connected binary image into a 4 connected image and also label it !!
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 6 Apr. 2015
I already answered this in your duplicate question http://www.mathworks.com/matlabcentral/answers/196207-i-want-an-algorithm-to-convert-an-8-connected-labelling-into-a-4-connected-labelling-on-this-binary You said that you did not want to use the MATLAB function that does it, bwlabel(), and so I provided you with a Wikipedia link which has the algorithm that you can program up yourself from scratch: http://en.wikipedia.org/wiki/Connected-component_labeling. So I'm puzzled as to why you're asking again. You said "I want to convert..." rather than "I want someone to give me their code..." so I gave you the recipe where you can do it. Is that not correct?
4 Kommentare
Image Analyst
am 7 Apr. 2015
No, I don't have the code because I use the built-in function, like most people. For some reason, you said you wanted to do it: "Definitely I would do it myself" so, good luck. Again, I don't have it to send to you even if I could.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!