[Insight-users] Reading vector images from multiple files

Jonathan Lok-Chuen Lo jlo at robots.ox.ac.uk
Thu Aug 26 07:28:16 EDT 2004


Hi Christoph,

Thanks once again for your reply.

I have implemented as you mentioned and it works.  Because I need to read in
6 images, I have cascaded 5 JoinImageFilter together.  However, this does
not allow me to change the number of images at run-time (I am looking at the
temporal MRI images for contrast-agent uptake study, and the number of
images per time sequence can vary between 5 to 7 images).

Are there any other ways to achieve this?  I know there is a
Compose3DVectorImageFilter for the 3D case, but are there one for
N-dimensional case?  (I did have a look at NaryFunctorImageFilter, but don't
know how to implement for composing N images.)

Thank you in advance.

With regards,
Jonathan

-----Original Message-----
From: Christoph Palm [mailto:christoph.palm at web.de] 
Sent: 25 August 2004 13:15
To: Jonathan Lok-Chuen Lo
Cc: ITK User Mailing List
Subject: Re: [Insight-users] Reading vector images from multiple files


Hi Jonathan,

I would read the image files as usual with the ImageFileReader or
ImageSeriesFileReader for Imagetype: itk::Image<unsigned char, 2>. After
that use the JoinImageFilter with your VectorImageType as 
OutputImageType to join the images into a vector.

Regards

Christoph

Am Mit, den 25.08.2004 schrieb Jonathan Lok-Chuen Lo um 14:03:
> Hi All,
> 
> I am trying the following, and any help would be very much 
> appreciated.  I would like to reading a vector image, but the 
> components are stored in multiple files:
> 
> // Input vector pixel
> const unsigned int vectorDimension = 6;
> typedef itk::Vector< unsigned char, vectorDimension > InputPixelType;
> 
> // Input image type
> const unsigned int imageDimension = 2;
> typedef itk::Image< InputPixelType, imageDimension > InputImageType;
> 
> And I have got 6 different images file, where each file contain one 
> component values for the whole image.
> 
> I am wondering what would be the best way to handle this.
> 
> Thank you!
> 
> With regards,
> Jonathan Lo
> 
> *************************************
> Jonathan Lok-Chuen Lo
> 
> Medical Vision Labortory
> Department of Engineering Science
> Oxford University
> Parks Road
> Oxford OX1 3PJ
>  
> Phone: (44) 1865 280940
> Fax:   (44) 1865 280922
> *************************************
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org 
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list