[Insight-users] Re: Changing header dicom!
Luis Ibanez
luis.ibanez at kitware.com
Mon Jul 3 17:07:20 EDT 2006
Hi Riccio,
What is exactly the problem that you are facing?
According to your email, you changed the DICOM header of an image
and after saving it in DICOM you find that the new file is different
from the original file. Isn't that what you expected ? after all,
you just changed the header.
Please be more descriptive with the problem that you are facing.
A minimal piece of source code that demonstrate the problem will
help a lot.
Thanks
Luis
-----------------------
Riccio Giancarlo wrote:
> Hi Luis,
>
> I'm sorry for the disturb...
>
> i'm trying to change the header dicom of 1 image with this method:
>
>
> DictionaryType & dict1 = itkImage->GetMetaDataDictionary();
>
> itk::EncapsulateMetaData<std::string>( dict1, key, value );
>
> ItkImage->SetMetaDataDictionary(dict1);
>
> and this method really change the header value, but when i write the
> image on disk and compare the headers (using "fc" dos command) the 2
> files (original and modified) are not the same (that's ok) because many
> header values are modified, not the only value that i've modified.
>
> However, if i do this operation with "DicomWorks" i obtain the wished
> effect.
>
> Thanks a lot.
>
> Riccio Giancarlo
>
More information about the Insight-users
mailing list