Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Segmenting Inner Brain from the Skull

Subject: Segmenting Inner Brain from the Skull

From: Abdullah

Date: 9 Feb, 2011 06:35:04

Message: 1 of 3

Hi, Every one. Please help me in coding, I want to reduce the intensity of the image to zero (0) till the skull of the linked image, in order to remove the inner brain from the skull.
http://img197.imageshack.us/img197/5917/14391510.jpg

Please help me urgently.

Subject: Segmenting Inner Brain from the Skull

From: ImageAnalyst

Date: 9 Feb, 2011 11:16:24

Message: 2 of 3

On Feb 9, 1:35 am, "Abdullah " <abdullah.la...@gmail.com> wrote:
> Hi, Every one. Please help me in coding, I want to reduce the intensity of the image to zero (0) till the skull of the linked image, in order to remove the inner brain from the skull.http://img197.imageshack.us/img197/5917/14391510.jpg
>
> Please help me urgently.

Perhaps something like
skull = imageArray > 200; % Threshold
skull = bwareaopen(10000); % get rid of any small objects
imageArray(skull) = 0; % Set to zero.

Subject: Segmenting Inner Brain from the Skull

From: Sean de

Date: 9 Feb, 2011 13:17:03

Message: 3 of 3

ImageAnalyst <imageanalyst@mailinator.com> wrote in message <be089441-1ac4-48b0-9726-a9453d759708@v7g2000yqh.googlegroups.com>...
> On Feb 9, 1:35 am, "Abdullah " <abdullah.la...@gmail.com> wrote:
> > Hi, Every one. Please help me in coding, I want to reduce the intensity of the image to zero (0) till the skull of the linked image, in order to remove the inner brain from the skull.http://img197.imageshack.us/img197/5917/14391510.jpg
> >
> > Please help me urgently.
>
> Perhaps something like
> skull = imageArray > 200; % Threshold
> skull = bwareaopen(10000); % get rid of any small objects
> imageArray(skull) = 0; % Set to zero.

Or perhaps:
I = rgb2gray(imread('news3.jpg')); %your image

Skull = I>200; %skull
Skull_filled = imfill(Skull,'holes'); %filled skull
BrainM = xor(Skull,Skull_filled); %brain map

Brain = uint8(BrainM).*I; %brain

imtool(Brain); %view

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us