[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.&nbsp;<EM>is there&nbsp;&nbsp;anyone can help me? </EM></DIV>
<DIV><EM>This is&nbsp;the important part of my&nbsp;program :</EM></DIV>
<DIV><EM><BR>typedef itk::Image&lt;unsigned short ,3&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Image3DType;<BR>&nbsp;</EM></DIV>
<DIV><EM>&nbsp;&nbsp; typedef itk::ImageSeriesReader&lt;Image3DType&gt; ReaderType;<BR>&nbsp;&nbsp; typedef itk::ImageToVTKImageFilter&lt;Image3DType&gt;&nbsp; ConnectorType;<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; itk::DICOMImageIO2::Pointer io = itk::DICOMImageIO2::New();<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;</EM><EM>&nbsp;&nbsp; </EM></DIV>
<DIV><EM><BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; itk::DICOMSeriesFileNames::Pointer names = <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; itk::DICOMSeriesFileNames::New();</EM></DIV>
<DIV><EM>&nbsp;&nbsp; names-&gt;SetDirectory("my Directory");&nbsp;</EM></DIV>
<DIV><EM>&nbsp;&nbsp;<BR>&nbsp;&nbsp; ReaderType::Pointer reader =&nbsp; ReaderType::New();<BR>&nbsp;&nbsp; ConnectorType::Pointer connector=&nbsp; ConnectorType::New();</EM></DIV>
<DIV><EM>&nbsp;&nbsp; reader-&gt;SetFileNames( names-&gt;GetFileNames() );<BR>&nbsp;&nbsp; reader-&gt;SetImageIO( io );</EM></DIV>
<P><EM>Thanks</EM></P>
<P><EM>Aissa</P>
<DIV><BR></DIV></EM>
<DIV><EM>&nbsp;</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--