Finding area of objects

14 Ansichten (letzte 30 Tage)
Md Mezbah Uddin
Md Mezbah Uddin am 13 Feb. 2020
Bearbeitet: darova am 13 Feb. 2020
I want to find the area of the circled objects. When I binarized I got the second image. Seeking expert opinion to solve this.

Antworten (1)

darova
darova am 13 Feb. 2020
Bearbeitet: darova am 13 Feb. 2020
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

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by