[Insight-users] Adding Noise to images

Neha D itkneha at yahoo . com
Wed, 10 Dec 2003 07:55:02 -0800 (PST)


--0-87521359-1071071702=:57349
Content-Type: text/plain; charset=us-ascii

Hello All,
 
Are there any ITK filters that can add noise to image and then some filters that we can use for detecting that type of noise and then enhance the image ?
 
Thanks,
Neha

Mathieu Malaterre <Mathieu . Malaterre at creatis . insa-lyon . fr> wrote:
Hi Neha,

Thanks for replying but I am still a bit confused. Does it worked out
of the box ? itk::StimulateImageIO should be able to read your spr
header file right away.

regards,
mathieu

> Hi,
>
> I was creating a 4D image, but in MetaImage Header, i mentioed postion
> as (0, 0) where as it should be (0,0,0,0) since these are the
> coordinates of the origin in a 4D space. I will check if it works fine
> after this modification.
>
> Thanks,
> Neha
>
>
> Mathieu Malaterre wrote:
> Neha,
>
> Just a quick question: I would very much like to know which reason
> disqualified itk::StimulateImageIO from your consideration. ?
>
> Thanks,
> Mathieu
>
> -------------------
> Neha D wrote:
>> hi all,
>>
>> i am trying to read stimulate file, by using metaImage header. (since
>> i have already program using metaImage format)
>>
>> For this, i create .mhd file. Original .spr file (header file for
>> stimulate format) and my .mhd file are as follows:
>>
>> *_.spr file_*
>>
>> numDim: 4
>>
>> dim: 256 256 24 1
>>
>> interval: 0.625000 0.625000 3.000000 1.0
>>
>> dataType: WORD
>>
>> sdtOrient: ax
>>
>> endian: ieee-be
>>
>> *_.mhd file_*
>>
>> NDims = 4
>>
>> DimSize = 256 256 24 1
>>
>> ElementSpacing = 0.625000 0.625000 3.000000 1.0
>>
>> Position = 0 0
>>
>> ElementByteOrderMSB = True
>>
>> ElementType = MET_SHORT ( i tried wtih MET_USHORT as well since i am
>> not sure
>>
>> if WORD is MET_USHORT or MET_SHORT )
>>
>> HeaderSize = -1
>>
>> ElementDataFile = shilpa_magI_001.raw
>>
>> *_when i try to read raw file using above header file, i get following
>> error message_*
>>
>> ElementType required and not defined.
>> MetaObject: Read: MET_Read Failed
>> MetaImage: M_Read: Error parsing file
>> MetaImage: Read: Cannot parse file
>> Exception caught during Raw file reading
>>
>> itk::ExceptionObject (00F1F520)
>> Location: "Unknown"
>> File: C:\Insight1.2\Code\IO\itkImageIOBase.cxx
>> Line: 122
>> Description: itk::ERROR: MetaImageIO(00228ED0): Unknown pixel type: 0
>>
>> I am not able to find out what exactly is wrong. I think I am
>> specifying MET_USHORT in incorrect way. Any input on this is
>> appreciated.
>>
>> Thanks,
>>
>> Neha
>
>
> ---------------------------------
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard




---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-87521359-1071071702=:57349
Content-Type: text/html; charset=us-ascii

<DIV>Hello All,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Are there any ITK filters that can add noise to image and then some filters that we can use for detecting that type of noise and then enhance the image ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>Neha<BR><BR><B><I>Mathieu Malaterre &lt;Mathieu . Malaterre at creatis . insa-lyon . fr&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi Neha,<BR><BR>Thanks for replying but I am still a bit confused. Does it worked out<BR>of the box ? itk::StimulateImageIO should be able to read your spr<BR>header file right away.<BR><BR>regards,<BR>mathieu<BR><BR>&gt; Hi,<BR>&gt;<BR>&gt; I was creating a 4D image, but in MetaImage Header, i mentioed postion<BR>&gt; as (0, 0) where as it should be (0,0,0,0) since these are the<BR>&gt; coordinates of the origin in a 4D space. I will check if it works fine<BR>&gt; after this modification.<BR>&gt;<BR>&gt; Thanks,<BR>&gt; Neha<BR>&gt;<BR>&gt;<BR>&gt; Mathieu Malaterre <MATHIEU . MALATERRE at CREATIS . INSA-LYON . FR>wrote:<BR>&gt; Neha,<BR>&gt;<BR>&gt; Just a quick question: I would very much like to know which reason<BR>&gt; disqualified itk::StimulateImageIO from your consideration. ?<BR>&gt;<BR>&gt; Thanks,<BR>&gt; Mathieu<BR>&gt;<BR>&gt; -------------------<BR>&gt; Neha D wrote:<BR>&gt;&gt;
 hi all,<BR>&gt;&gt;<BR>&gt;&gt; i am trying to read stimulate file, by using metaImage header. (since<BR>&gt;&gt; i have already program using metaImage format)<BR>&gt;&gt;<BR>&gt;&gt; For this, i create .mhd file. Original .spr file (header file for<BR>&gt;&gt; stimulate format) and my .mhd file are as follows:<BR>&gt;&gt;<BR>&gt;&gt; *_.spr file_*<BR>&gt;&gt;<BR>&gt;&gt; numDim: 4<BR>&gt;&gt;<BR>&gt;&gt; dim: 256 256 24 1<BR>&gt;&gt;<BR>&gt;&gt; interval: 0.625000 0.625000 3.000000 1.0<BR>&gt;&gt;<BR>&gt;&gt; dataType: WORD<BR>&gt;&gt;<BR>&gt;&gt; sdtOrient: ax<BR>&gt;&gt;<BR>&gt;&gt; endian: ieee-be<BR>&gt;&gt;<BR>&gt;&gt; *_.mhd file_*<BR>&gt;&gt;<BR>&gt;&gt; NDims = 4<BR>&gt;&gt;<BR>&gt;&gt; DimSize = 256 256 24 1<BR>&gt;&gt;<BR>&gt;&gt; ElementSpacing = 0.625000 0.625000 3.000000 1.0<BR>&gt;&gt;<BR>&gt;&gt; Position = 0 0<BR>&gt;&gt;<BR>&gt;&gt; ElementByteOrderMSB = True<BR>&gt;&gt;<BR>&gt;&gt; ElementType = MET_SHORT ( i tried wtih MET_USHORT as well since i am<BR>&gt;&gt;
 not sure<BR>&gt;&gt;<BR>&gt;&gt; if WORD is MET_USHORT or MET_SHORT )<BR>&gt;&gt;<BR>&gt;&gt; HeaderSize = -1<BR>&gt;&gt;<BR>&gt;&gt; ElementDataFile = shilpa_magI_001.raw<BR>&gt;&gt;<BR>&gt;&gt; *_when i try to read raw file using above header file, i get following<BR>&gt;&gt; error message_*<BR>&gt;&gt;<BR>&gt;&gt; ElementType required and not defined.<BR>&gt;&gt; MetaObject: Read: MET_Read Failed<BR>&gt;&gt; MetaImage: M_Read: Error parsing file<BR>&gt;&gt; MetaImage: Read: Cannot parse file<BR>&gt;&gt; Exception caught during Raw file reading<BR>&gt;&gt;<BR>&gt;&gt; itk::ExceptionObject (00F1F520)<BR>&gt;&gt; Location: "Unknown"<BR>&gt;&gt; File: C:\Insight1.2\Code\IO\itkImageIOBase.cxx<BR>&gt;&gt; Line: 122<BR>&gt;&gt; Description: itk::ERROR: MetaImageIO(00228ED0): Unknown pixel type: 0<BR>&gt;&gt;<BR>&gt;&gt; I am not able to find out what exactly is wrong. I think I am<BR>&gt;&gt; specifying MET_USHORT in incorrect way. Any input on this is<BR>&gt;&gt;
 appreciated.<BR>&gt;&gt;<BR>&gt;&gt; Thanks,<BR>&gt;&gt;<BR>&gt;&gt; Neha<BR>&gt;<BR>&gt;<BR>&gt; ---------------------------------<BR>&gt; Do you Yahoo!?<BR>&gt; Protect your identity with Yahoo! Mail AddressGuard<BR><BR><BR></BLOCKQUOTE><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://antispam . yahoo . com/whatsnewfree">Protect your identity with Yahoo! Mail AddressGuard</a>
--0-87521359-1071071702=:57349--