How to remove pictoral muscle and other artifacts from breast color image not grayscale image

1 view (last 30 days)
I have a color image and i want to remove the pictoral muscle and other artifacts on this image.I want to keep the image as color image. Thanks

Answers (1)

Image Analyst
Image Analyst on 21 Oct 2017
You can segment the image to find the parts you want to mask out. Then do this:
% Mask the image using bsxfun() function to multiply the mask by each channel individually.
maskedRgbImage = bsxfun(@times, rgbImage, cast(mask, 'like', rgbImage));
  2 Comments
KYLE RAB
KYLE RAB on 21 Oct 2017
Thanks, put how to find the coordinates of the pectoral muscle in order to cut it? the shape is like a triangle. I need to know how to start.
Image Analyst
Image Analyst on 22 Oct 2017
Since I don't have your image (you did not post it for some reason) I can't do an automatic way. So in that case, just use imfreehand(). See attached demo.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!