필터 지우기
필터 지우기

how to crop bigger size of blob in binary image and count its pixel .

조회 수: 4 (최근 30일)
  댓글 수: 1
Rahul punk
Rahul punk 2019년 1월 12일
the size of images all time change so not a constant image size.
thank you!

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

채택된 답변

Image Analyst
Image Analyst 2019년 1월 12일
Not sure what you mean. You can use imcrop() if you want. You can also find the bounding boxes if you want:
props = regionprops(binaryImage, 'BoundingBox');
To crop out each one individually, do this
for k = 1 : length(props)
thisBB = props(k).BoundingBox;
subImage = imcrop(binaryImage, thisBB);
figure;
imshow(subImage);
end
This is done in my Image Processing Tutorial
screenshot.jpg
  댓글 수: 3
Image Analyst
Image Analyst 2019년 1월 13일
Use bwareafilt()
biggestBlob = bwareafilt(binaryImage, 1); % Extract largest blob ONLY
areaOfBiggestBlob = nnz(biggestBlob) % Get its area
Rahul punk
Rahul punk 2019년 1월 14일
its very easy thanks image analysis

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2011b

Community Treasure Hunt

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

Start Hunting!

Translated by