필터 지우기
필터 지우기

Particular Point detection in an image

조회 수: 20 (최근 30일)
Karn Vadaliya
Karn Vadaliya 2019년 2월 11일
댓글: Mark Sherstan 2019년 2월 12일
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
  댓글 수: 2
KSSV
KSSV 2019년 2월 11일
YOu can detect those points manually using getpts or ginput.
KALYAN ACHARJYA
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
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
Karn Vadaliya
Karn Vadaliya 2019년 2월 12일
How did you find the area from 115 to 175, I mean perfectly these values ?
Mark Sherstan
Mark Sherstan 2019년 2월 12일
MATLAB has a great built in app. A guide can be found here.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by