how to detect corner of image and find coordinate of corner - I need M-file code
1 次查看(过去 30 天)
显示 更早的评论
Please help , i had tried to find corner and coordinate of corner automatically,,, but still have problem to solve,, can u help me to make code-mfile,, i still confuse how to find corner and find coordinate automatically,, i have image tile square , how to detect 4 corner of tile ceramic and find value of coorninate 4 corner of tile ,
0 个评论
回答(3 个)
Sean de Wolski
2012-6-21
How about:
doc cornermetric
as a place to start?
3 个评论
Image Analyst
2020-10-20
Try this page: Computer Vision Toolbox functions
Lots of corner-related functions there.
matlab_image
2012-6-21
Please try with following links...... http://www.mathworks.com/matlabcentral/fileexchange/9272-harris-corner-detector/content/Harris.m http://www.mathworks.in/help/toolbox/images/ref/corner.html
2 个评论
Walter Roberson
2012-6-21
Unfortunately we do not know if the poster is using a version of MATLAB new enough to have the "corner" routine. The poster was asked in one of the numerous threads the poster has started on this topic, but did not answer.
Image Analyst
2012-6-21
I thought from your prior messages on this tile that you needed the corners to know how to warp the image. Now it looks like you're saying that you warped it somehow without the corners. But unfortunately you warped it incorrectly so that it's still not square.
But if it were the binary image, you could simply use find() in the first and last row of the binary image to find the corners.
upperLeftCornerX = find(binaryImage(1,:), 1, 'first');
upperRightCornerX = find(binaryImage(1,:), 1, 'last');
lowerLeftCornerX = find(binaryImage(end,:), 1, 'first');
lowerRightCornerX = find(binaryImage(end,:), 1, 'last');
but again, you must already have the corners to do that incorrect warping so why not just do it correctly, using the code I gave you in the other posting? There is no need to correct the skewness only part way and then try to warp it again to get it all the way fixed.
7 个评论
Image Analyst
2012-6-21
No until sometime this weekend, but by then you'll probably have it all solved.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!