How do you compare matrices A and B?
Afficher commentaires plus anciens
I do not know what to do and ask questions.
The matrices A and B are as follows.
A = [21, 58;
47, 82;
56, 83;
64, 255;
0, 0 ];
B = [24, 61;
0, 0;
37, 83;
56, 82;
0, 0;
0, 0;
0, 0;
7, 178;
64, 255];
A is the object center coordinates of the previous video frame, and B is the object center coordinates of the current video frame.
I want to delete an object whose center coordinates have not moved more than 3 pixels.
So, we want to get only information about the coordinates where the difference between each coordinate of A and B matrix is more than 3 pixels.
2 commentaires
madhan ravi
le 28 Jan 2019
So give an explicit example of your desired output.
Jae Min Lee
le 28 Jan 2019
Réponse acceptée
Plus de réponses (1)
KSSV
le 28 Jan 2019
1 vote
Read about knnsearch. Here you can speicfy the distance and pick the points nearest to the given set of points. This function might work for you.
Catégories
En savoir plus sur Computer Vision with Simulink dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!