필터 지우기
필터 지우기

I have a closed outline How t associate a label for each pixel that exit in the region limited by outline

조회 수: 5 (최근 30일)
I have a closed outline How t associate a label for each pixel that exit in the region limited by outline

답변 (2개)

Matt Kindig
Matt Kindig 2012년 6월 19일
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
Image Analyst
Image Analyst 2012년 6월 19일
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
Mohamed Amine 2012년 6월 19일
Thanks for your reponse , i like to get pixels inside outline and not pixels that are in outline.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by