<!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> </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 to display 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> </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> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Luis Ibanez wrote:</FONT></DIV>
<DIV><FONT face=Arial size=2><</FONT></DIV>
<DIV><FONT face=Arial size=2><</FONT></DIV>
<DIV><Hi Yixun,<BR><FONT face=Arial size=2><</FONT><BR><What lead you
to think that the value of spacing[2] is incorrect ?<BR><FONT face=Arial
size=2><</FONT><BR><Are you comparing the value of spacing[2] against the
value in<BR><the DICOM header ?<BR><FONT face=Arial
size=2><</FONT><BR><FONT face=Arial size=2><</FONT><BR><If so, then it
is normal that they differ.<BR><FONT face=Arial size=2><</FONT><BR><The
spacing[2] is computed using the difference in<BR><origin between consecutive
slices. This value does not<BR><have to match the spacing value in the DICOM
header.<BR><FONT face=Arial size=2><</FONT><BR><FONT face=Arial
size=2><</FONT><BR><FONT face=Arial size=2><</FONT><BR><FONT face=Arial
size=2><</FONT> Regards,<BR><FONT face=Arial size=2><</FONT><BR><FONT
face=Arial size=2><</FONT><BR><FONT face=Arial
size=2><</FONT>
Luis<BR><BR><BR><BR>------------------------<BR>Yixun Liu wrote:<BR>>
Hi,<BR>> <BR>> I use the below codes to read a series of
MRI,<BR>> <BR>> this->dicomReader =
ReaderType_Short::New();//itk<BR>> itk::DICOMSeriesFileNames::Pointer
nameGenerator = <BR>> itk::DICOMSeriesFileNames::New();<BR>>
nameGenerator->SetDirectory( (const char*)strPath );<BR>> typedef
std::vector<std::string> fileNamesContainer;<BR>>
fileNamesContainer fileNames;<BR>> fileNames =
nameGenerator->GetFileNames();<BR>>
this->dicomReader->SetImageIO( itk::DICOMImageIO2::New() );<BR>>
this->dicomReader->SetFileNames( fileNames ); <BR>>
this->dicomReader->Update();<BR>> <BR>> However, the
spacing[2], namely spacing between slices, is uncorrect.<BR>> <BR>>
Hope your help!<BR>> <BR>> <BR>> Regards,<BR>>
<BR>> Yixun Liu<BR>> <BR>> <BR>>
------------------------------------------------------------------------</DIV></BODY></HTML>