how to find midpoint of a bounding box using co ordinates
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I've used regionprops() to get bounding boxes,then i got matrix of co-ordinates of bounding boxes .Now i want compute centroids of bounding boxes using these co ordinates
0 commentaires
Réponses (1)
KSSV
le 15 Avr 2019
Read about mean
2 commentaires
KSSV
le 15 Avr 2019
YOu can find the mean of coordinates: Read here: https://in.mathworks.com/help/matlab/ref/mean.html
x = rand(4,1) ; y = rand(4,1) ;
hold on
plot(x,y,'*r')
plot(mean(x),mean(y),'*b')
legend('points','mid point')
Voir également
Catégories
En savoir plus sur Computational Geometry dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!