I want to find use regioprops and find the centroid of this shape along with other properties such as area of this shape. any ideas?
3 views (last 30 days)
Walter Roberson on 11 Aug 2022
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/1094395/image.jpeg';
img = imread(filename);
bw = im2bw(img);
props = regionprops(bw, 'Area', 'Centroid');