Find area from binary image.
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Naseeb Gill
am 1 Nov. 2017
Kommentiert: darova
am 27 Apr. 2019
Hello,
I have this binary image:

I want to encircle it with ellipse or any kind of boundary like below:

After this, I have to fill the area inside the boundary and want to found out the area of this boundary. How to do so?
Thanks.
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 1 Nov. 2017
Try this:
binaryImage = bwconvhull(binaryImage, 'union');
area = bwarea(binaryImage);
% or for a simple sum of pixels:
area = sum(binaryImage(:));
0 Kommentare
Weitere Antworten (1)
Naga Sai Anupoju
am 24 Apr. 2019
binaryImage = bwconvhull(binaryImage, 'union');
area = bwarea(binaryImage);
% or for a simple sum of pixels:
area = sum(binaryImage(:));
2 Kommentare
Image Analyst
am 27 Apr. 2019
??? This answer is identical to the one I posted a year and a half ago.
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!