필터 지우기
필터 지우기

Trace the boundary of an image starting from the reference.

조회 수: 2 (최근 30일)
Shirah
Shirah 2013년 6월 24일
Hello,
I have already obtained the reference point which is inside the circle as shown in the first picture labelled(d) below. From there, how do I trace along the boundary of the image as per the direction indicated by the arrow in picture(d) such that I obtain the graph as per picture (g) which is distance versus index of boundary pixels. Thank You.

채택된 답변

Image Analyst
Image Analyst 2013년 6월 24일
Did you try bwtraceboundary()?
  댓글 수: 3
Image Analyst
Image Analyst 2013년 6월 25일
bwtraceboundary should not be in a loop. It gets all the boundary pixels in one shot. If I were you though, I'd use bwboundaries() since it does not require you to specify a starting location and starting direction. As long as you don't care about that (most people don't), it's easier.
Shirah
Shirah 2013년 6월 26일
Thanks a lot. It works perfectly outside the loop.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by