[Insight-users] read a region of DICOM IMAGE 3D
aissa arar
arar_aissa at yahoo.fr
Thu, 4 Mar 2004 17:37:55 +0100 (CET)
--0-616883737-1078418275=:54849
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi
i can read Dicom volume but i don't know how to read only a region of this volume. is there anyone can help me?
This is the important part of my program :
typedef itk::Image<unsigned short ,3> Image3DType;
typedef itk::ImageSeriesReader<Image3DType> ReaderType;
typedef itk::ImageToVTKImageFilter<Image3DType> ConnectorType;
itk::DICOMImageIO2::Pointer io = itk::DICOMImageIO2::New();
itk::DICOMSeriesFileNames::Pointer names =
itk::DICOMSeriesFileNames::New();
names->SetDirectory("my Directory");
ReaderType::Pointer reader = ReaderType::New();
ConnectorType::Pointer connector= ConnectorType::New();
reader->SetFileNames( names->GetFileNames() );
reader->SetImageIO( io );
Thanks
Aissa
---------------------------------
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail
Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !
--0-616883737-1078418275=:54849
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<DIV>Hi</DIV>
<DIV>i can read Dicom volume but i don't know how to read only a region of this volume. <EM>is there anyone can help me? </EM></DIV>
<DIV><EM>This is the important part of my program :</EM></DIV>
<DIV><EM><BR>typedef itk::Image<unsigned short ,3> Image3DType;<BR> </EM></DIV>
<DIV><EM> typedef itk::ImageSeriesReader<Image3DType> ReaderType;<BR> typedef itk::ImageToVTKImageFilter<Image3DType> ConnectorType;<BR> <BR> <BR> itk::DICOMImageIO2::Pointer io = itk::DICOMImageIO2::New();<BR> <BR> </EM><EM> </EM></DIV>
<DIV><EM><BR> <BR> itk::DICOMSeriesFileNames::Pointer names = <BR> itk::DICOMSeriesFileNames::New();</EM></DIV>
<DIV><EM> names->SetDirectory("my Directory"); </EM></DIV>
<DIV><EM> <BR> ReaderType::Pointer reader = ReaderType::New();<BR> ConnectorType::Pointer connector= ConnectorType::New();</EM></DIV>
<DIV><EM> reader->SetFileNames( names->GetFileNames() );<BR> reader->SetImageIO( io );</EM></DIV>
<P><EM>Thanks</EM></P>
<P><EM>Aissa</P>
<DIV><BR></DIV></EM>
<DIV><EM> </EM></DIV><p>
<hr size=1>
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
<br><a href="http://fr.rd.yahoo.com/mail/mail_taglines/default/*http://fr.benefits.yahoo.com/" target="_blank">Créez votre Yahoo! Mail</a>
<br><br>
Dialoguez en direct avec vos amis grâce à <a href="http://fr.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com/" target="_blank">Yahoo! Messenger !</a>
--0-616883737-1078418275=:54849--