Can anyone suggest the steps to separate the tumour part from the segmented MRI image ?

1 view (last 30 days)
Hi all,
I segmented a MRI image having brain tumor by region growing. After region growing,the tumor gets segmented in the MRI image. But I am not able to separate it and show only the tumor part.Pls suggest the coding steps. I had attached my code and the corresponding input MRI image. Pls suggest the steps.
my code:
img1=regiongrowing(double(L),119,58,50);
figure,imshow(img1);

Answers (1)

Image Analyst
Image Analyst on 24 Jun 2014
After regiongrowing you probably have a binary image - essentially a mask. So you can just use that to set other parts of the image to zero:
maskedImage = grayImage; % Initialize.
maskedImage(~mask) = 0; % Zero out areas not in tumor mask.

Community Treasure Hunt

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

Start Hunting!