how can i get the end point coordinates of major, minor axis of a blob
Mostrar comentarios más antiguos
i have calculated major/minor axis length of 5 blobs present in my image . now i need to know the end point coordinates of the major/minor axis how can i do that?
Axismeasurements=regionprops(labeledImage,'MinorAxisLength','MajorAxisLength');
for k=1:numberOfBlobs
minorAxis=Axismeasurements(k).MinorAxisLength;
disp(minorAxis);
end
majorAxis=Axismeasurements(2).MajorAxisLength;
Respuestas (1)
Sean de Wolski
el 15 de Abr. de 2013
0 votos
Use bwmorph with the 'endpoints' option on the label or binary image.
2 comentarios
Suvidha
el 15 de Abr. de 2013
Sean de Wolski
el 16 de Abr. de 2013
I = false(21);
I(10,3:18) = true; %horizontal line
epts = bwmorph(I,'endpoints')
Categorías
Más información sobre Morphological Operations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!