図形の頂点の座標を取得したいです。
11 views (last 30 days)
Show older comments
添付した画像の白い部分が台形ぽくなっているとおもうのですが、その四つの隅の座標の情報を返す関数などはありますか?
よろしければお答えいただけると幸いです。
追記
自動で頂点を返すような方法を探しております。
0 Comments
Accepted Answer
Kenta
on 4 Sep 2019
close all;
I=imread('onion.png');
figure;imshow(I)
[x,y] = ginput(1)
自動ではなく、手動でよいのですよね?
それであれば、上のようにginput(選びたい数)で座標を得ることができます。
More Answers (0)
See Also
Categories
Find more on Image Processing and Computer Vision in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!