<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>I have found the easiest solution is to just let GDCM generate the SOP instance UIDs for both elements. That results in the same UID for both as the current implementation does not allow you to override both.<br><br>Every image should have a different UID, so it is not a good idea to hard-code the sop string in gdcmFileHelper. It is best just to leave the GDCM code as is and remove setting the SOP instance UID in your application. Why do you need this exact UID?<br><br>Todd<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> x0_y0_0 <x0_y0_0@126.com><br><b><span style="font-weight:
bold;">To:</span></b> Todd Jensen <todd.jensen@ieee.org>; itk <insight-users@itk.org><br><b><span style="font-weight: bold;">Sent:</span></b> Monday, May 11, 2009 8:46:12 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re:Re: [Insight-users] DicomImageReadChangeHeaderWrite---0002|0003<br></font><br><div>Thank you very much,Todd Jensen. I overwrite gdcmFileHelper.cxx as followed:<br> std::string sop = "1.2.86.755.4.2.4.24.1.3.201";</div>
<div> CopyMandatoryEntry(0x0002,0x0003,sop);</div>
<div>and then rebuilt ITK(InsightToolkit-3.8.0),but the <span style="font-size: 10.5pt; color: red; font-family: 'Calibri','sans-serif';" lang="EN-US">SOP Instance UID <font color="#000000">become wrong:</font></span></div>
<div> (0002|0003) Media Storage SOP Instance UID = 1.2.826.0.1.3680043.2.1125.1.78291920758156013450636231478551699</div>
<div>I don't know what's wrong with it?</div>
<div> </div>
<div>regards,</div>
<div> mexiao<br><br></div><span title="neteasefooter"><a rel="nofollow" target="_blank" href="http://512.mail.163.com/mailstamp/stamp/dz/activity.do?from=footer"></a>
</span></div></div></div></body></html>