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?

1 次查看(过去 30 天)

采纳的回答

Walter Roberson
Walter Roberson 2022-8-11
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/1094395/image.jpeg';
img = imread(filename);
bw = im2bw(img);
imshow(bw)
props = regionprops(bw, 'Area', 'Centroid');
props
props = struct with fields:
Area: 50890 Centroid: [209.7235 135.0689]

更多回答(1 个)

Image Analyst
Image Analyst 2022-8-12

类别

Help CenterFile Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by