how to find midpoint of a bounding box using co ordinates

6 vues (au cours des 30 derniers jours)
IP student ;(
IP student ;( le 15 Avr 2019
Commenté : KSSV le 15 Avr 2019
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

Réponses (1)

KSSV
KSSV le 15 Avr 2019
Read about mean
  2 commentaires
KSSV
KSSV le 15 Avr 2019
IP student commented:
mean ??? can you share the link??
KSSV
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')

Connectez-vous pour commenter.

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!

Translated by