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