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 Center および File ExchangeElementary Polygons についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by