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개)

카테고리

Help CenterFile Exchange에서 Feature Detection and Extraction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by