Sort the Harris corner coordinates and extract only the four corner coordinates
1 回表示 (過去 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!