필터 지우기
필터 지우기

how can I obtain the coordinates of the polygon border pixels

조회 수: 2 (최근 30일)
ZhG
ZhG 2014년 12월 8일
댓글: ZhG 2014년 12월 8일
Hello,
For example, there is an image on which I have a set of points and the vertices of the convex hull of these points. We can know the vertices coordinates easily, but how can I obtain the pixels' coordinates on the lines (border) of the convex hull. Any idea would be appreciated. I don't want to use the line equation such as y = kx+b, because we are not sure how many lines are there.
Thanks.
  댓글 수: 2
Guillaume
Guillaume 2014년 12월 8일
Considering that a line is an infinite number of points of no size and real coordinates and that a pixel has a size and integer coordinates, what criteria do you use to define that a pixel in on the border?
ZhG
ZhG 2014년 12월 8일
I simply use the Matlab built-in function.

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by