Hi Luiz,<br><br>The executable runs and throws no exception, the Dicom image<br>is fine, but the header is unchanged.<br><br>I've tried (in the code and from the command line):<br>0010|0010<br>0010\|0010<br>'0010|0010'<br>
"0010|0010"<br>etc.<br><br>Thanks,<br>Olivier<br><br><div><span class="gmail_quote">On 3/17/06, <b class="gmail_sendername">Luis Ibanez</b> <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>Hi Olivier,<br><br>When you say that:<br><br> "...it doesn't work..."
<br><br><br>What do you mean exactly ?<br><br><br><br> 1) does it throws an exception ?<br> 2) does it produce a segmentation fault ?<br> 3) do you get an error message ?<br> 4) do you get a corrupted DICOM file as output ?
<br> 5) do you get a fine DICOM file as output<br> but without the new patient name ?<br><br><br><br> Please be more specific.<br><br><br><br>Since you claim that the same code works fine on Linux,<br>and does not work on Cygwin, this may be revealing a
<br>bug in the code.<br><br><br>Please let us know more details about what exactly<br>are you observing.<br><br><br><br> Thanks<br><br><br> Luis<br><br><br>-------------------------<br>Olivier Rousseau wrote:<br>
> I've already tried this solution, and it doesn't work.<br>> Any other suggestions?<br>><br>> On 3/16/06, *Karthik Krishnan* <<a href="mailto:Karthik.Krishnan@kitware.com">Karthik.Krishnan@kitware.com</a><br>
> <mailto:<a href="mailto:Karthik.Krishnan@kitware.com">Karthik.Krishnan@kitware.com</a>>> wrote:<br>><br>> try<br>> DicomImageReadChangeHeaderWrite Image.dcm ImageChanged.dcm '0010|0010'<br>> NewName
<br>><br>> Most shells don't substitute escape sequences when you use single<br>> quotes.<br>><br>> Olivier Rousseau wrote:<br>><br>> > Hi,<br>> ><br>> > I am trying to change the header of a dicom image on cygwin. I have
<br>> > no problem doing it on Linux using<br>> "DicomImageReadChangeHeaderWrite".<br>> > For example, to change the name of the patient, I just type<br>> ><br>> > DicomImageReadChangeHeaderWrite
Image.dcm ImageChanged.dcm 0010\|0010<br>> > NewName<br>> ><br>> > and it works perfectly (\| is needed for him to recognize "|"). On<br>> > cygwin, I didn't<br>> > find any way to make him understand the character "|". Then I did
<br>> look<br>> > into the<br>> > code and simply wrote:<br>> ><br>> > itk::EncapsulateMetaData<std::string>( dictionary, "0010|0010",<br>> > "NewName" );
<br>> ><br>> > Again, it works on Linux, but not on cygwin (and I really need it to<br>> > work on cygwin...)<br>> > Does anyone has an idea of what I could do?<br>> > Is there an other way to specify the entryId?
<br>> ><br>> > Thanks!<br>> > Olivier<br>> ><br>> >------------------------------------------------------------------------<br>> ><br>> >_______________________________________________
<br>> >Insight-users mailing list<br>> ><a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a> <mailto:<a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>><br>> >
<a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>> ><br>> ><br>><br>><br>><br>> ------------------------------------------------------------------------
<br>><br>> _______________________________________________<br>> Insight-users mailing list<br>> <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>> <a href="http://www.itk.org/mailman/listinfo/insight-users">
http://www.itk.org/mailman/listinfo/insight-users</a><br><br></blockquote></div><br>