<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Luis,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>he may be right.</FONT></DIV>
<DIV><FONT face=Arial size=2>I also encountered problems when reading 
certain</FONT></DIV>
<DIV><FONT face=Arial size=2>DICOM - MR - files and rendering the volume using 
</FONT><FONT face=Arial size=2>the SliceView class.</FONT></DIV>
<DIV><FONT face=Arial size=2>Sometimes, the spacing is set to a value of 1.0 in 
z - direction,</FONT></DIV>
<DIV><FONT face=Arial size=2>although this is apparently wrong.</FONT></DIV>
<DIV><FONT face=Arial size=2>Using non itk - programms&nbsp;to display&nbsp;the 
image,</FONT></DIV>
<DIV><FONT face=Arial size=2>it is shown in the right way.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Markus</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Luis Ibanez wrote:</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;</FONT></DIV>
<DIV>&lt;Hi Yixun,<BR><FONT face=Arial size=2>&lt;</FONT><BR>&lt;What lead you 
to think that the value of spacing[2] is incorrect ?<BR><FONT face=Arial 
size=2>&lt;</FONT><BR>&lt;Are you comparing the value of spacing[2] against the 
value in<BR>&lt;the DICOM header ?<BR><FONT face=Arial 
size=2>&lt;</FONT><BR><FONT face=Arial size=2>&lt;</FONT><BR>&lt;If so, then it 
is normal that they differ.<BR><FONT face=Arial size=2>&lt;</FONT><BR>&lt;The 
spacing[2] is computed using the difference in<BR>&lt;origin between consecutive 
slices. This value does not<BR>&lt;have to match the spacing value in the DICOM 
header.<BR><FONT face=Arial size=2>&lt;</FONT><BR><FONT face=Arial 
size=2>&lt;</FONT><BR><FONT face=Arial size=2>&lt;</FONT><BR><FONT face=Arial 
size=2>&lt;</FONT> Regards,<BR><FONT face=Arial size=2>&lt;</FONT><BR><FONT 
face=Arial size=2>&lt;</FONT><BR><FONT face=Arial 
size=2>&lt;</FONT>&nbsp;&nbsp;&nbsp; 
Luis<BR><BR><BR><BR>------------------------<BR>Yixun Liu wrote:<BR>&gt; 
Hi,<BR>&gt;&nbsp; <BR>&gt; I use the below codes to read a series of 
MRI,<BR>&gt;&nbsp; <BR>&gt;&nbsp; this-&gt;dicomReader = 
ReaderType_Short::New();//itk<BR>&gt;&nbsp; itk::DICOMSeriesFileNames::Pointer 
nameGenerator = <BR>&gt; itk::DICOMSeriesFileNames::New();<BR>&gt;&nbsp; 
nameGenerator-&gt;SetDirectory( (const char*)strPath );<BR>&gt;&nbsp; typedef 
std::vector&lt;std::string&gt; fileNamesContainer;<BR>&gt;&nbsp; 
fileNamesContainer fileNames;<BR>&gt;&nbsp; fileNames = 
nameGenerator-&gt;GetFileNames();<BR>&gt;&nbsp; 
this-&gt;dicomReader-&gt;SetImageIO( itk::DICOMImageIO2::New() );<BR>&gt;&nbsp; 
this-&gt;dicomReader-&gt;SetFileNames( fileNames ); <BR>&gt;&nbsp; 
this-&gt;dicomReader-&gt;Update();<BR>&gt;&nbsp; <BR>&gt; However, the 
spacing[2], namely spacing between slices, is uncorrect.<BR>&gt;&nbsp; <BR>&gt; 
Hope your help!<BR>&gt;&nbsp; <BR>&gt;&nbsp; <BR>&gt; Regards,<BR>&gt;&nbsp; 
<BR>&gt; Yixun Liu<BR>&gt; <BR>&gt; <BR>&gt; 
------------------------------------------------------------------------</DIV></BODY></HTML>