Particular Point detection in an image
17 次查看(过去 30 天)
显示 更早的评论
I am doing a project on stereo vision and for that i need the 2D location of the 4 points in the below image:
I am confused as to how can I detect those points in Matlab. Is there any function for that ?
2 个评论
KALYAN ACHARJYA
2019-2-11
I dont know abour other test images, for this specific image, you can locate them using morphological image processing (segmentation).
采纳的回答
Mark Sherstan
2019-2-11
编辑:Mark Sherstan
2019-2-11
Assuming all your images are approximetly the same do the following:
I = imread('image.png');
J = im2bw(I);
K = bwpropfilt(J, 'Area', [115, 175]);
figure(1)
subplot(1,3,1); imshow(I)
subplot(1,3,2); imshow(J)
subplot(1,3,3); imshow(K)
stats = regionprops(K,'Centroid');
stats.Centroid % This will provide the 2D coordinates
2 个评论
更多回答(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!