[Insight-users] Reading vector images from multiple files

Christoph Palm christoph.palm at web.de
Wed Aug 25 08:14:59 EDT 2004


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