How do I find the area inside a shape?

3 次查看(过去 30 天)
Is there a way to find the areas of the different shapes in this image in one piece of code?

回答(1 个)

Elizabeth Reese
Elizabeth Reese 2017-11-29
Using the Image Processing Toolbox in MATLAB, you can provide the binary image and the properties ('Area') that you would like and the function "regionprops" will return those statistics for the regions that are detected in the image.

类别

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