Mammogram - pectoral muscle removal
Ältere Kommentare anzeigen
Hi all
I have a problem with removing pectoral muscle on mammogram. After identified pectoral muscle, what should I do next? I found on some paper, they are using loop function to travel up to First zero pixel and then replace all travelled pixels with zero and in some condition is violating for consecutive 5 times, then decrease pole position for next row by 1 and replace all pixels with zero.
Below is my sample code to identified pectoral muscle area:
pect = I;
[x y] = size(I);
thres=173;
for i=1:x
for j=1:y
if (pect(i,j)<thres)
pect(i,j)=0;
end
end
end
*Note: I is the mammogram which I have removed "white text" area.
Thank you.
2 Kommentare
krishnasai gudavalli
am 20 Mär. 2015
How to identify the pectoral muscle?
Image Analyst
am 20 Mär. 2015
Post your image in a new question if my answer below about using thresholding does not work for you.
Antworten (2)
Image Analyst
am 8 Okt. 2011
I think you should just do
pect(pect <= thres) = 0;
instead of the loops.
12 Kommentare
ws
am 8 Okt. 2011
Image Analyst
am 8 Okt. 2011
No. That did the removal. Just exactly what you did, except without loops. It merely sets the values below the threshold to zero. It is a grayscale image, like the original, except that pixels below the threshold are now pure black. It is not a binary image (logical image), which is often called a "mask" image. Isn't that how you were defining "removal"?
ws
am 9 Okt. 2011
Image Analyst
am 9 Okt. 2011
I don't know what you're asking. As far as I can tell, it's removed. What you did was to make a copy of your image - "pect" is a copy of "I". Then you defined every pixel with a value less than "thres" as "pectoral muscle". Then we set those to zero, thus removing them. I don't know what the confusion is. You only have one image. WHAT is different in size? Sure the area of the pixels below "thres" is different than the brighter areas, but so what? It doesn't matter one bit. "pect" is the same as your original image except for the fact that the pectoral muscle (the pixels darker than "thres") are black (removed).
Walter Roberson
am 9 Okt. 2011
I wonder if wei siang is thinking of doing some cropping ??
ws
am 9 Okt. 2011
Image Analyst
am 9 Okt. 2011
If thresholding can't do it, as you first said but now deny, then I have no idea how to do it given the information you've provided. You'd have to provide an image. There are thousands of ways to segment things out of an image. You might use thresholding, region growing, texture, background subtraction, etc. but no one can tell unless they see your image and then try out a few things.
ws
am 9 Okt. 2011
ws
am 9 Okt. 2011
Image Analyst
am 9 Okt. 2011
Possibly, though it might take quite some development. It may be so complicated that it can't be done in a few lines given in the Answers forum. I never did see the image. If I don't see it in the first click, I don't continue. I don't download, save, unzip, create accounts, etc. I need to see it immediately or else I don't bother.
Image Analyst
am 9 Okt. 2011
http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers
ws
am 9 Okt. 2011
Image Analyst
am 9 Okt. 2011
0 Stimmen
You could threshold your image 5 to get a binary image. Then call imclearborder() to get the image of just the breast. Subtract that from the first binary image to get just the pect, which is touching the border. If you have cases where the breast also touches the border you'll have to do something like find the std dev of the regions and assume that the pect is the lower std dev.
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!