Removing Pectoral Muscle Mammogram
Show older comments
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
Afaf Saad
on 10 Sep 2018
Hello Epah, Did You solve your problem? i have the same case
Answers (1)
Image Analyst
on 25 Mar 2015
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
bushra mughal
on 15 May 2016
i have the same issue and this code is not working please sugesst other options
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?
Categories
Find more on Deblurring in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!