making an image with binary mask

3 views (last 30 days)
likui fikui
likui fikui on 27 Apr 2015
Commented: Apra Gupta on 7 Sep 2021
I have obtain the binary mask through segmentation as attach now I have to apply this mask to the image that is gray image, problem is mask is created using regionprops() command in matlab, so the mask obtain is of different size, point by point multiplication doesn't work, any solution?
The result I'm getting with imresize() can be seen. How do I map it perfectly?
  2 Comments
sivaranjani g
sivaranjani g on 8 Oct 2017
which coding used to create this mask????
Image Analyst
Image Analyst on 8 Oct 2017
It probably was a color image originally and color segmentation was used to find skin tones. Or perhaps texture segmentation might have been used.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 27 Apr 2015
Why is the mask a different size than the gray scale image? regionprops() does not create masks. Perhaps you created one by taking the bounding box of one of the blobs??? If so, don't do that. You can get a mask of just one particular blob, if that's what you want to do, by using ismember().
  22 Comments
Image Analyst
Image Analyst on 7 Sep 2021
Rather than continue to hijack @likui fikui's discussion, can you please start your own question? I'll tell you there how to do it. In the mean time, see the attachment.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!