필터 지우기
필터 지우기

Find area from binary image.

조회 수: 2 (최근 30일)
Naseeb Gill
Naseeb Gill 2017년 11월 1일
댓글: darova 2019년 4월 27일
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.

채택된 답변

Image Analyst
Image Analyst 2017년 11월 1일
Try this:
binaryImage = bwconvhull(binaryImage, 'union');
area = bwarea(binaryImage);
% or for a simple sum of pixels:
area = sum(binaryImage(:));

추가 답변 (1개)

Naga Sai Anupoju
Naga Sai Anupoju 2019년 4월 24일
binaryImage = bwconvhull(binaryImage, 'union');
area = bwarea(binaryImage);
% or for a simple sum of pixels:
area = sum(binaryImage(:));
  댓글 수: 2
Image Analyst
Image Analyst 2019년 4월 27일
??? This answer is identical to the one I posted a year and a half ago.
darova
darova 2019년 4월 27일
Use special button for code inserting please
Untitled.png

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by