How to segment part of an image

1 view (last 30 days)
Helsa
Helsa on 22 Apr 2014
Edited: Image Analyst on 23 Apr 2014
Im trying to segment a Brain MRI tumor just so that the tumor is showing and the rest of the image is black.
here is what I have so far from my code:
EDU>> T = imread('Image_1.jpg');
EDU>> B = im2bw(T);
EDU>> imshow(B)
EDU>> V = bwareaopen(B,1000);
EDU>> imshow(V)
The image is a brain with a Tumor. I am trying to segment the Tumor so I can have only the tumor showing. Please help.

Answers (1)

Image Analyst
Image Analyst on 22 Apr 2014
A primitive algorithm like this will probably rarely work satisfactorily and won't work robustly over a wide variety of images. Do you really think any good algorithm can find tumors with only 2 lines of code ? I suggest you look over published algorithms for one that is better: http://iris.usc.edu/Vision-Notes/bibliography/contentsmedical.html#Medical%20Applications,%20CAT,%20MRI,%20Ultrasound,%20Heart%20Models,%20Brain%20Models
  2 Comments
Helsa
Helsa on 22 Apr 2014
The code up their is what I have so far I need help with figuring out what to do next. Do I need to use a loop?
Image Analyst
Image Analyst on 23 Apr 2014
Edited: Image Analyst on 23 Apr 2014
Uh, yeah... sure. Go for it. Of course you could try this approach.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!