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.

回答 (2 件)

Zara Khan
Zara Khan 2022 年 9 月 24 日

Any help to find this


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 件のコメント
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.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by