Particular Point detection in an image
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Karn Vadaliya
il 11 Feb 2019
Commentato: Mark Sherstan
il 12 Feb 2019
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 ? ![Left_72.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/203584/Left_72.png)
![Left_72.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/203584/Left_72.png)
2 Commenti
KALYAN ACHARJYA
il 11 Feb 2019
I dont know abour other test images, for this specific image, you can locate them using morphological image processing (segmentation).
Risposta accettata
Mark Sherstan
il 11 Feb 2019
Modificato: Mark Sherstan
il 11 Feb 2019
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Feature Detection and Extraction in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!