How do I find the corner points of an mask
Show older comments
I have various mask and i want to find the exact four courner coordinates, but when some mask objects with an rotation and little odd shape comes i find it difficult to find the corner points.
I have attached the mask and pointed the points i want to find

Accepted Answer
More Answers (3)
You could download pgonCorners,
BW = imbinarize( im2gray(imread('image.png')) );
V=pgonCorners(BW,4);
imshow(BW,[]); hold on
plot(V(:,2),V(:,1),'r.',MarkerSize=30); hold off
Image Analyst
on 17 Apr 2025
1 vote
Image Analyst
on 9 May 2025
0 votes
See my Answer in your duplicate question: https://www.mathworks.com/matlabcentral/answers/2177033-help-me-get-the-points-of-the-mask#answer_1564977
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

