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:
algorithm for removal of film artifacts

Subject: algorithm for removal of film artifacts

From: soumya goyal

Date: 4 Nov, 2010 16:33:04

Message: 1 of 4

i dont know how to write a code in matlab.. plzz tell me..i have an algorithm but dont know how to implement it im matlab. this algorithm removes film artifacts from the mri.

1. read the mri image and store it in 2d matrix.
2. select the peak threshold value for removing white labels.
3. set the flag to 255.
4. select pixels whose intensity value is equal to 255.
5. if the intensity value is 255 then the flag value is set to zero and thus the labels are removed from the mri.
6. otherwise skip to the next pixel.

suggest me the code for this and the way to implement it.

Subject: algorithm for removal of film artifacts

From: Sean

Date: 4 Nov, 2010 16:41:04

Message: 2 of 4

"soumya goyal" <goyalsoumya@mathworks.com> wrote in message <iaun80$7vu$1@fred.mathworks.com>...
> i dont know how to write a code in matlab.. plzz tell me..i have an algorithm but dont know how to implement it im matlab. this algorithm removes film artifacts from the mri.
>
> 1. read the mri image and store it in 2d matrix.
> 2. select the peak threshold value for removing white labels.
> 3. set the flag to 255.
> 4. select pixels whose intensity value is equal to 255.
> 5. if the intensity value is 255 then the flag value is set to zero and thus the labels are removed from the mri.
> 6. otherwise skip to the next pixel.
>
> suggest me the code for this and the way to implement it.

Two lines:
I = imread('yourMRIslice'); %may need dicomread et al
I(I==255) = 0;

Subject: algorithm for removal of film artifacts

From: soumya goyal

Date: 4 Nov, 2010 16:49:05

Message: 3 of 4

"Sean " <sean.dewolski@nospamplease.umit.maine.edu> wrote in message <iaunn0$90i$1@fred.mathworks.com>...
> "soumya goyal" <goyalsoumya@mathworks.com> wrote in message <iaun80$7vu$1@fred.mathworks.com>...
> > i dont know how to write a code in matlab.. plzz tell me..i have an algorithm but dont know how to implement it im matlab. this algorithm removes film artifacts from the mri.
> >
> > 1. read the mri image and store it in 2d matrix.
> > 2. select the peak threshold value for removing white labels.
> > 3. set the flag to 255.
> > 4. select pixels whose intensity value is equal to 255.
> > 5. if the intensity value is 255 then the flag value is set to zero and thus the labels are removed from the mri.
> > 6. otherwise skip to the next pixel.
> >
> > suggest me the code for this and the way to implement it.
>
> Two lines:
> I = imread('yourMRIslice'); %may need dicomread et al
> I(I==255) = 0;

wat is mrislice? is it my image? suppose my image is saved in the variable i then wat i have to do..?

Subject: algorithm for removal of film artifacts

From: Sean

Date: 4 Nov, 2010 17:03:03

Message: 4 of 4

"soumya goyal" <goyalsoumya@mathworks.com> wrote in message <iauo61$9rh$1@fred.mathworks.com>...
> "Sean " <sean.dewolski@nospamplease.umit.maine.edu> wrote in message <iaunn0$90i$1@fred.mathworks.com>...
> > "soumya goyal" <goyalsoumya@mathworks.com> wrote in message <iaun80$7vu$1@fred.mathworks.com>...
> > > i dont know how to write a code in matlab.. plzz tell me..i have an algorithm but dont know how to implement it im matlab. this algorithm removes film artifacts from the mri.
> > >
> > > 1. read the mri image and store it in 2d matrix.
> > > 2. select the peak threshold value for removing white labels.
> > > 3. set the flag to 255.
> > > 4. select pixels whose intensity value is equal to 255.
> > > 5. if the intensity value is 255 then the flag value is set to zero and thus the labels are removed from the mri.
> > > 6. otherwise skip to the next pixel.
> > >
> > > suggest me the code for this and the way to implement it.
> >
> > Two lines:
> > I = imread('yourMRIslice'); %may need dicomread et al
> > I(I==255) = 0;
>
> wat is mrislice? is it my image? suppose my image is saved in the variable i then wat i have to do..?

Okay, your image is saved in a variable; let's call it 'I'. You want to remove values that are equal to 255.

I(I==255) = 0;

Tags for this Thread

No tags are associated with 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