Sort the Harris corner coordinates and extract only the four corner coordinates
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello,
I have an edge image where the corners are detected using Harris corner detection.The corners are plotted on the Edge image. I have extracted the corner coordinates and concatenated the x and y coordinates in a single array(Coordinates).I have sorted these coordinates. I am sending here the code snippet for sorting the x and y coordiantes
B=sortrows(Coordinates);
X=[true;diff(B(:,1))>0];
Sorted_Elements=B(X,:);
I get the sorted elements stored in Sorted_Elements array. Now i need to extract the four corner coordinates as follows:
TopLeft Coords=[Minx,miny]; RightTop Coords=[Maxx,Maxy]; LeftBottomCoords=[Maxx,Miny]; BottomRightCoords=[Maxx,Maxy]
I have attached the image .
How can I find these coordinates. Please let me know the function in MATLAB to do this
Thanks Pankaja
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Feature Detection and Extraction에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!