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

조회 수: 2 (최근 30일)
KURNIAWAN
KURNIAWAN 2012년 6월 21일
댓글: Image Analyst 2020년 10월 20일
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 : <http://tinypic.com/view.php?pic=2czer0o&s=6>
tile before croping and warping : <http://tinypic.com/view.php?pic=k4yyyd&s=6>

답변 (3개)

Sean de Wolski
Sean de Wolski 2012년 6월 21일
How about:
doc cornermetric
as a place to start?
  댓글 수: 3

댓글을 달려면 로그인하십시오.


matlab_image
matlab_image 2012년 6월 21일
  댓글 수: 2
Walter Roberson
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.
KURNIAWAN
KURNIAWAN 2012년 6월 21일
i confuse with harris corner detector http://www.mathworks.com/matlabcentral/fileexchange/9272-harris-corner-detector/content/Harris.m
in m-file use imag.mat... how if i use image to process

댓글을 달려면 로그인하십시오.


Image Analyst
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
KURNIAWAN
KURNIAWAN 2012년 6월 21일
can u help me image analyst.. in whole code..
Image Analyst
Image Analyst 2012년 6월 21일
No until sometime this weekend, but by then you'll probably have it all solved.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by