calculating the distances of the centers of objects to each other at image
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Özge Akbülbül
el 14 de Mayo de 2018
Comentada: Rik
el 8 de Jun. de 2021
Hi everyone I am working on image processing project.There is an image who has circular roi (region of interest) and there is a two object at the circular roi.I want to calculate distances of the centers of objects each other and i wanna find the center points of circular area.How can i do this?Can someone give me tips about it?Thank you already.
1 comentario
Rik
el 8 de Jun. de 2021
Backup of this question (with image retrieved from imgur):
calculating the distances of the centers of objects to each other at image
Hi everyone I am working on image processing project.There is an image who has circular roi (region of interest) and there is a two object at the circular roi.I want to calculate distances of the centers of objects each other and i wanna find the center points of circular area.How can i do this?Can someone give me tips about it?Thank you already.
Respuesta aceptada
Image Analyst
el 14 de Mayo de 2018
If you have the Statistics and Machine Learning Toolbox, use pdist2
props = regionprops(binaryImage, 'Centroid');
centroids = [props.Centroid];
xCentroids = centroids(1:2:end);
yCentroids = centroids(2:2:end);
xy = [xCentroids, yCentroids];
distances = pdist2(xy, xy)
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!