[Insight-users] Problem with DicomImageReadChangeHeaderWrite
on cygwin
Luis Ibanez
luis.ibanez at kitware.com
Fri Mar 17 12:15:54 EST 2006
Hi Olivier,
When you say that:
"...it doesn't work..."
What do you mean exactly ?
1) does it throws an exception ?
2) does it produce a segmentation fault ?
3) do you get an error message ?
4) do you get a corrupted DICOM file as output ?
5) do you get a fine DICOM file as output
but without the new patient name ?
Please be more specific.
Since you claim that the same code works fine on Linux,
and does not work on Cygwin, this may be revealing a
bug in the code.
Please let us know more details about what exactly
are you observing.
Thanks
Luis
-------------------------
Olivier Rousseau wrote:
> 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
> <mailto: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 <mailto:Insight-users at itk.org>
> >http://www.itk.org/mailman/listinfo/insight-users
> >
> >
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list