I've already tried this solution, and it doesn't work.<br>
Any other suggestions?<br><br><div><span class="gmail_quote">On 3/16/06, <b class="gmail_sendername">Karthik Krishnan</b> &lt;<a href="mailto:Karthik.Krishnan@kitware.com">Karthik.Krishnan@kitware.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">try<br>DicomImageReadChangeHeaderWrite Image.dcm ImageChanged.dcm '0010|0010'<br>NewName<br>
<br>Most shells don't substitute escape sequences when you use single quotes.<br><br>Olivier Rousseau wrote:<br><br>&gt; Hi,<br>&gt;<br>&gt; I am trying to change the header of a dicom image on cygwin. I have<br>&gt; no problem doing it on Linux using &quot;DicomImageReadChangeHeaderWrite&quot;.
<br>&gt; For example, to change the name of the patient, I just type<br>&gt;<br>&gt; DicomImageReadChangeHeaderWrite Image.dcm ImageChanged.dcm 0010\|0010<br>&gt; NewName<br>&gt;<br>&gt; and it works perfectly (\| is needed for him to recognize &quot;|&quot;). On
<br>&gt; cygwin, I didn't<br>&gt; find any way to make him understand the character &quot;|&quot;. Then I did look<br>&gt; into the<br>&gt; code and simply wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;itk::EncapsulateMetaData&lt;std::string&gt;( dictionary, &quot;0010|0010&quot;,
<br>&gt; &quot;NewName&quot; );<br>&gt;<br>&gt; Again, it works on Linux, but not on cygwin (and I really need it to<br>&gt; work on cygwin...)<br>&gt; Does anyone has an idea of what I could do?<br>&gt; Is there an other way to specify the entryId?
<br>&gt;<br>&gt; Thanks!<br>&gt; Olivier<br>&gt;<br>&gt;------------------------------------------------------------------------<br>&gt;<br>&gt;_______________________________________________<br>&gt;Insight-users mailing list
<br>&gt;<a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>&gt;<a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt;<br>&gt;<br></blockquote>
</div><br>