Finding area of objects

15 ビュー (過去 30 日間)
Md Mezbah Uddin
Md Mezbah Uddin 2020 年 2 月 13 日
編集済み: darova 2020 年 2 月 13 日
I want to find the area of the circled objects. When I binarized I got the second image. Seeking expert opinion to solve this.

回答 (1 件)

darova
darova 2020 年 2 月 13 日
編集済み: darova 2020 年 2 月 13 日
Try this script
I0 = imread('image.jpeg');
I1 = im2bw(I0);
imshow(I1)
while 1
[x,y] = ginput(1);
I2 = bwselect(I1,x,y);
imshow(1/3*I1+2/3*I2)
str = sprintf('Selected area: %d pix',sum(I2(:)) );
title(str)
end

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by