[Insight-users] why not ITK can read the spacing correctly?
Yixun Liu
yxliu at fudan.edu.cn
Thu Apr 27 04:31:06 EDT 2006
Hi,
I use the below codes to read a series of MRI,
this->dicomReader = ReaderType_Short::New();//itk
itk::DICOMSeriesFileNames::Pointer nameGenerator = itk::DICOMSeriesFileNames::New();
nameGenerator->SetDirectory( (const char*)strPath );
typedef std::vector<std::string> fileNamesContainer;
fileNamesContainer fileNames;
fileNames = nameGenerator->GetFileNames();
this->dicomReader->SetImageIO( itk::DICOMImageIO2::New() );
this->dicomReader->SetFileNames( fileNames );
this->dicomReader->Update();
However, the spacing[2], namely spacing between slices, is uncorrect.
Hope your help!
Regards,
Yixun Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060427/7a473537/attachment.htm
More information about the Insight-users
mailing list