Find vertices in image of convex polygon

버전 1.0.0 (6.82 KB) 작성자: Matt J
Estimates the corner points of a pixelated convex polygon having a known number of vertices.
다운로드 수: 487
업데이트 날짜: 2020/2/5

라이선스 보기

The command pgonCorners() implemented in this FEX submission takes a binary image of a convex polygon as input and returns estimated locations of its vertices (to the nearest pixel) as output. Prior knowledge of the number of vertices is assumed. The method used is based on an idea from linear programming discussed in this Matlab Answers post,

https://www.mathworks.com/matlabcentral/answers/413079-i-am-trying-to-find-the-corners-of-the-rectangular-shapes-this-code-is-working-very-well-but-i-d#answer_331199

Although the method was designed with convex polygons in mind, it sometimes works rather well on approximately convex objects, as demonstrated in example scripts contained in this submission and illustrated in the thumbnail image above.

SYNTAX:

corners = pgonCorners(BW,k)
corners = pgonCorners(BW,k,N)

IN:

BW: Input binary image.
k: Number of vertices to search for.
N: Number of angular samples partitioning the unit circle (default=360).
Affects the resolution of the search.

OUT:

corners: Detected corners in counter-clockwise order as a k x 2 matrix.

인용 양식

Matt J (2024). Find vertices in image of convex polygon (https://www.mathworks.com/matlabcentral/fileexchange/74181-find-vertices-in-image-of-convex-polygon), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2019b
R2016b 이상 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0