MATLAB Answers

How to work on the white region of this binary mask?

1 view (last 30 days)
Samar Ragab
Samar Ragab on 26 Aug 2018
Commented: Afaf Saad on 10 Sep 2018
I have a mammogram database and I want to apply some features on the white region.

  1 Comment

Afaf Saad
Afaf Saad on 10 Sep 2018
Did you removed the pectoral part ? if yes then how ?

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 26 Aug 2018
One easy way is to just process the whole image and then erase the resulting image outside the mask
outputImage = some algorithm using the entire image....
maskedOutputImage = outputImage; % Initialize
maskedOutputImage(~mask) = 0; % Set to zero outside the mask.

  0 Comments

Sign in to comment.

More Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 26 Aug 2018
Edited: KALYAN ACHARJYA on 26 Aug 2018
Yes You can do that easily, Considering binary_image.jpg as a binary image
BW1=binary_image;
binary_image(BW1==1)=your do operation statement or values here:

  1 Comment

Image Analyst
Image Analyst on 26 Aug 2018
I think you meant binary_image(BW1 == 1). But be aware that binary_image(BW1=1) is a 1-D vector, not a 2-D image so your algorithm would have to account for that.

Sign in to comment.


Translated by