How to separate hand region after using multi-otsu's thresholding?

조회 수: 2 (최근 30일)
Zara Khan
Zara Khan 2022년 9월 24일
댓글: Image Analyst 2022년 9월 26일
The attached image is the output after appling multi-otsu's thrsholding using 2 threshold value. How can I separate the hand region now ?
Remember the approah should be adaptive.

답변 (1개)

Image Analyst
Image Analyst 2022년 9월 24일
Simply use ==. Assuming the hand is the brightest in your quantized, 3-level image:
maxGL = max(yourImage(:))
binaryImage = yourImage == maxGL;
% Extract only the largest blob:
binaryImage = bwareafilt(binaryImage, 1); % Binary image of only the hand.
If you want to crop it out to a separate, smaller image for some reason (probably not necessary though), you can do:
% Find Bounding Box:
props = regionprops(binaryImage, 'BoundingBox');
% Extract that bounding box out into it's own, smaller image.
handOnly = imcrop(binaryImage, props.BoundingBox);
  댓글 수: 6
Zara Khan
Zara Khan 2022년 9월 25일
Sir it will be nice to create this ground truth image when there is few images but working with almost 1500 images will be hard. If I will be not comparing then how will show that my segmentation algorithm is doing great job
Image Analyst
Image Analyst 2022년 9월 26일
You can prove it did a great job because, without any "right answer", who is to say otherwise? With no authoritative right answer, no one can complain that your segmentation is not perfect.

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

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by