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!