MATLAB Answers

Compare ground truth scatter plot with tracker's scatter plot

2 views (last 30 days)
Joseph Rubin
Joseph Rubin on 25 Feb 2020
I am using a particle tracker that outputs coordinates of tracked particles in an image into a matrix. I want to assess the tracker's performance looking at the tracker as a binary classifier. In order to obtain the "ground truth" I marked particles by eye in imageJ and I obtained a matlab matrix with the coordinates of the particles for the "ground truth".
I now want to use Matlab to count the number of true positives, false positives, and false negatives. Is there a function I can use to count these for me?
%Consider the following scatter plot:
hold on
%Imagine that the exes represent the coordinates for the ground truth and the circles represent the coordinates output by the tracker. I would want a function that would %tell me there are 3 true positives (given a maximum tolerable distance I input), 1 false positive, and 1 false negative.
Thank you so much!

Answers (1)

Hrishikesh Borate
Hrishikesh Borate on 5 Jan 2021
From my understanding, you are trying to identify tracker output points in the vicinity of ground truth points given a maximum tolerable distance. This can be done by using rangesearch function.
Upon identifying the points, you can classify and label your data. Once you have labelled points, you can use confusionchart to identify the TP, FP, FN, TN.

Community Treasure Hunt

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

Start Hunting!