i am new and here is my code and this screenshot is of normal mamogram but i dnt knw how to remove pectoral muscle using this code

조회 수: 2 (최근 30일)
im =input image;
BW= shrinkWrap(im,'Biggest');
w=immultiply(BW,im);
%Using histogram to adjust the image
I_eq = adapthisteq(w);
%figure,imshow(I_eq);
%Method #1: using a thresholding method.
%Above 200(>), will appear white; Below <200, will appear black
%Remove objects in the image that is less than 250 pixels
thresholdValue = 200;
binaryImage = I_eq > thresholdValue;
%clear the border
IM_cb = imclearborder(binaryImage);
BW2 = bwareaopen(IM_cb, 250);
BW_filled = imfill(BW2, 'holes');
%figure,imshow(BW_filled);
labeledImage = bwlabel(BW_filled);
measurements = regionprops(labeledImage, 'Area');
% Get all the areas
allAreas = [measurements.Area];
[biggestArea, indexOfBiggest] = sort(allAreas, 'descend');
% Extract biggest
biggestBlob = ismember(labeledImage, indexOfBiggest(1));
% Convert to binary
biggestBlob = biggestBlob > 0;
imshow(biggestBlob, []);
  댓글 수: 3
vid
vid 2016년 8월 16일
hello, Im trying to remove pectoral muscle from mammograms using seeded region growing using the following function http://fr.mathworks.com/matlabcentral/fileexchange/35269-simple-single-seeded-region-growing but the pectoral muscle is not removed instead the inner image becomes black and white background. Please help.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by