Identify coordinates of a marker

Hi, I need to write a code in order to get the coordinates of many black markers on a white leaflets. I will apply this code to two images of the same leaflet acquired by different angles in order two get the xyz coordinates of the markersa Thank you

1 commentaire

if true
--------------------------------------------------- code start
This is an example for your case
Input is "Input_Data", two dimension matrix
Marker_Counter=1;
figure6=figure;
Markers = {'+','o','*','x','v','d','^','s','>','<'};
for i=1:10:size(Input_Data,1)
TPR=Input_Data(i:i+9,7);
FPR=Input_Data(i:i+9,8);
plot(FPR,TPR,strcat('-',Markers{Marker_Counter}));
Marker_Counter=Marker_Counter+1;
hold on
end
plot([0.5 1],[0.5 1],'--');
legend('Minpts = 100','Minpts = 200','Minpts = 300','Minpts = 400','Minpts = 500','Minpts = 600','Minpts = 700','Minpts = 800','Minpts = 900','Minpts = 1000','','Location','SouthEast');
xlabel('FPR or (1-Specificity)','FontSize',12,'FontWeight','bold'); ylabel('TPR or Spensitivity)','FontSize',12,'FontWeight','bold');
title('ROC Space');
close(gcf);
-------------------------------------------- code end
end
--------------------------------------- picture link preview

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 27 Nov 2016

0 votes

You need the Computer Vision System Toolbox https://www.mathworks.com/products/computer-vision/features.html#camera-calibration unless you want to try to reinvent it and write it yourself. (How much is your time worth?)

1 commentaire

MarzioDG
MarzioDG le 27 Nov 2016
Thank you Image Analyst, I already have it. I did the calibration of my cameras and now I just need the coordinates of every markers in the image so I can use triangulate function to obtain xyz coordinates.

Connectez-vous pour commenter.

Question posée :

le 27 Nov 2016

Commenté :

Ali
le 29 Oct 2017

Community Treasure Hunt

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

Start Hunting!

Translated by