MATLAB: 1. How do i get Centroid and its corresponding Equivdiameter when regionprops is used

regionprops

1. How do i get Centroid and its corresponding Equivdiameter when regionprops is used? I need centroid and its corresponding diameter..

Best Answer

  • stats = regionprops(TheImage, 'Centroid', 'EquivDiameter');
    stats(1).Centroid
    stats(1).EquivDiameter