<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Mathieu!</div><div><br></div><div>I use ITK 3.10.2.</div><div>I got an error which may be related to the GDCM bug you described: </div><br><div><div>Am 25.03.2009 um 19:46 schrieb Mathieu Malaterre:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Thanks !<br><br>A couple of notes though:<br><br>1. There is bug currently in GDCM 2.0.10 where the z-spacing (3rd<br>dimension) is not properly computed for the new Enhanced [CT|MR] Image<br>Storage and images contained in the multi-frames volume would not have<br>the same Image Orientation (Patient) (=Direction Cosines).<br>2. I am working on the next release (GDCM 2.0.11) and gdcminfo will<br>even be able to report whether or not the image is lossy or<br>lossless(*). This is a key feature to have in high quality environment<br>(such as clinical trial).<br></div></blockquote><div><br></div><div>My error occurs when i try to write a DICOM series after i loaded, applied a filter on it and made some changes in only the following DICOM values:</div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Monaco; "><font class="Apple-style-span" color="#3F6E74"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Monaco; "><span style="color: #3f6e74"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">std</span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">::string entrySeriesUID(</span></font><span style="color: #c41a16"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">"0020|000e"</span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">); </span></font><span style="color: #007400"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">//Series UID</span></font></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Monaco; "><span style="color: #3f6e74"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">std</span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">::string entryStudy( </span></font><span style="color: #c41a16"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">"0008|1030"</span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"> ); </span></font><span style="color: #007400"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">//Study Description </span></font></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Monaco; "><span style="color: #3f6e74"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">std</span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">::string entrySeries( </span></font><span style="color: #c41a16"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">"0008|103e"</span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"> ); </span></font><span style="color: #007400"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">//Series Description </span></font></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Monaco; "><span style="color: #3f6e74"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">std</span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">::string entryProtocol( </span></font><span style="color: #c41a16"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">"0018|1030"</span></font></span><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"> ); </span></font><span style="color: #007400"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">//Protocol Type </span></font></span></div><div><font class="Apple-style-span" color="#007400" face="Monaco"><br></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" color="#000000">The error message (don't mind about the change in my namespace):</font></font></div><div><font class="Apple-style-span" color="#007400" face="Monaco"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Courier; "><b><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">Exception thrown while writing the series </span></font></font></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Courier; min-height: 17px; "><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b></b><br></span></font></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Courier; "><b><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">itk3102::ExceptionObject (0xa90d60)</span></font></font></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Courier; "><b><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">Location: "void itk3102::ImageBase<VImageDimension>::ComputeIndexToPhysicalPointMatrices() [with unsigned int VImageDimension = 2u]" </span></font></font></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Courier; "><b><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">File: ./ITK3102/Code/Common/itkImageBase.txx</span></font></font></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Courier; "><b><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">Line: 188</span></font></font></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Courier; "><b><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">Description: itk3102::ERROR: Image(0xa8fd00): Bad direction, determinant is 0. Direction is 1 0</span></font></font></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Courier; "><b><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">0 0</span></font></font></b></div><div><font class="Apple-style-span" face="Courier"><b><br></b></font></div></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" color="#000000">The DICOM pairs of origin and direction:</font></font></div><div><font class="Apple-style-span" color="#007400" face="Monaco" size="4"><span class="Apple-style-span" style="font-size: 14px;"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Courier; "><b><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">0020|0032 = -176.00362324715\31.713768005371\198</span></font></font></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Courier; "><b><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">0020|0037 = 1\0\0\0\0\-1</span></font></font></b></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">Do you think the error is caused by the GDCM bug?</span></font></font></div><div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">If yes: How can i fix it?</span></font></font></div><div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">If no: What did i do wrong? There was at least one series where my code worked with.</span></font></font></div></span></font></div></div></div></body></html>