I have a closed outline How t associate a label for each pixel that exit in the region limited by outline
Mostra commenti meno recenti
I have a closed outline How t associate a label for each pixel that exit in the region limited by outline
Risposte (2)
Matt Kindig
il 19 Giu 2012
0 voti
Can you clarify what you are trying to do? Is the closed outline in an image? In that case, use bwboundaries() to get the pixels on the outline (after appropriate thresholding to black and white and any necessary processing). Or are you trying to get the pixels inside the outline? In that case, use poly2mask().
1 Commento
Image Analyst
il 19 Giu 2012
I agree. He probably doesn't know that "label" is a word we use to describe connected components labeling, as performed by bwlabel or bwconncomp(). I can't envision the need to use either of these since labeling is probably not needed as far as I can tell. I agree he probably wants "location" not "label" and so should use bwboundaries().
Mohamed Amine
il 19 Giu 2012
0 voti
Categorie
Scopri di più su Region and Image Properties in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!