<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Bookman Old Style"></FONT><FONT face="Bookman Old Style">Hi
Luis,</FONT></DIV>
<DIV><FONT face="Bookman Old Style">Thank your help!</FONT></DIV>
<DIV><FONT face="Bookman Old Style">Yes I compare it with the dicom
header.</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">One question. If the dicom files are not
consecutive. Could ITK read them correctly?</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">Another question. I use DICOMImageIO2 and
DicomImageIO to read a same series. The DICOMImageIO2 can read the
spacing[2] correctly, but DICOMImageIO is error. Why? </FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">Regards,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">Yixun Liu</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style"></FONT><BR>----- Original Message -----
<BR>From: "Luis Ibanez" <<A href="">luis.ibanez@kitware.com</A>><BR>To:
"Yixun Liu" <<A href="">yxliu@fudan.edu.cn</A>><BR>Cc: "ITK" <<A
href="">insight-users@itk.org</A>><BR>Sent: Friday, April 28, 2006 9:17
PM<BR>Subject: Re: [Insight-users] why not ITK can read the spacing
correctly?<BR><BR><BR>> <BR>> Hi Yixun,<BR>> <BR>> What lead you to
think that the value of spacing[2] is incorrect ?<BR>> <BR>> Are you
comparing the value of spacing[2] against the value in<BR>> the DICOM header
?<BR>> <BR>> <BR>> If so, then it is normal that they differ.<BR>>
<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>> <BR>> <BR>>
<BR>> Regards,<BR>> <BR>>
<BR>> 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>> >
------------------------------------------------------------------------<BR>>
> <BR>> > _______________________________________________<BR>> >
Insight-users mailing list<BR>> > <A
href="">Insight-users@itk.org</A><BR>> > <A
href="">http://www.itk.org/mailman/listinfo/insight-users</A><BR>> <BR>>
<BR></DIV></BODY></HTML>