[Insight-users] Problem with DicomImageReadChangeHeaderWrite on cygwin

Olivier Rousseau itkoli at gmail.com
Thu Mar 16 17:52:38 EST 2006


I've already tried this solution, and it doesn't work.
Any other suggestions?

On 3/16/06, Karthik Krishnan <Karthik.Krishnan at kitware.com> wrote:
>
> try
> DicomImageReadChangeHeaderWrite Image.dcm ImageChanged.dcm '0010|0010'
> NewName
>
> Most shells don't substitute escape sequences when you use single quotes.
>
> Olivier Rousseau wrote:
>
> > Hi,
> >
> > I am trying to change the header of a dicom image on cygwin. I have
> > no problem doing it on Linux using "DicomImageReadChangeHeaderWrite".
> > For example, to change the name of the patient, I just type
> >
> > DicomImageReadChangeHeaderWrite Image.dcm ImageChanged.dcm 0010\|0010
> > NewName
> >
> > and it works perfectly (\| is needed for him to recognize "|"). On
> > cygwin, I didn't
> > find any way to make him understand the character "|". Then I did look
> > into the
> > code and simply wrote:
> >
> >  itk::EncapsulateMetaData<std::string>( dictionary, "0010|0010",
> > "NewName" );
> >
> > Again, it works on Linux, but not on cygwin (and I really need it to
> > work on cygwin...)
> > Does anyone has an idea of what I could do?
> > Is there an other way to specify the entryId?
> >
> > Thanks!
> > Olivier
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >Insight-users mailing list
> >Insight-users at itk.org
> >http://www.itk.org/mailman/listinfo/insight-users
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060316/0b2ee6af/attachment.html


More information about the Insight-users mailing list