MATLAB Answers

how to detect corner of image and find coordinate of corner - I need M-file code

47 views (last 30 days)
KURNIAWAN on 21 Jun 2012
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 ,
this link of image of tile : <>
tile before croping and warping : <>


Sign in to comment.

Answers (3)

matlab_image on 21 Jun 2012


Walter Roberson
Walter Roberson on 21 Jun 2012
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.
KURNIAWAN on 21 Jun 2012
i confuse with harris corner detector
in m-file use imag.mat... how if i use image to process

Sign in to comment.

Image Analyst
Image Analyst on 21 Jun 2012
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.


Show 4 older comments
KURNIAWAN on 21 Jun 2012
this the problem : <>
so if the coordinate 4 corner automatically find, then i know defect of distance edge

Sign in to comment.

Sign in to answer this question.