Removing Pectoral Muscle Mammogram

I have an image below. I would like to remove the pectoral muscle on the left. I have used imclearborder() function but it does not remove the pectoral muscle successfully. Are there any other methods I can do to remove the region?

1 Comment

Hello Epah, Did You solve your problem? i have the same case

Sign in to comment.

Answers (1)

Why did that not work? What does "remove" mean to you? The image must remain rectangular. Do you want to blacken the area in the original gray scale image that corresponds to the pectoral muscle? By the way, if the breast touches the bottom of the image you could get into trouble. The way around that is to write "false" into all outer edge pixels of the image where you do not expect a breast to be. That way only the pectoral blob will be removed.
% Get rid of blobs touching the edge of the image.
noBorder = imclearborder(binaryImage);
% Get the blob representing only the pectoral muscle.
pectoralOnly = xor(noBorder, binaryImage);
% Blacken the pectoral region in the original image.
grayImage(pectoralOnly) = 0;

3 Comments

i have the same issue and this code is not working please sugesst other options
Image Analyst
Image Analyst on 15 May 2016
Edited: Image Analyst on 16 May 2016
How could someone do that in a meaningful way without an image to view. We like to have images when we suggest image analysis algorithms. I already asked this of you here in this link but you did not respond there for some reason - you did it here. Can you post your image and non-working code in that question? Or did you finally get it working?
Afaf Saad
Afaf Saad on 10 Sep 2018
Edited: Afaf Saad on 10 Sep 2018
i posted a question and inserted a figure, Can you please see it and help me?

Sign in to comment.

Asked:

on 25 Mar 2015

Edited:

on 10 Sep 2018

Community Treasure Hunt

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

Start Hunting!