[Insight-users] Reading vector images from multiple files
Jonathan Lok-Chuen Lo
jlo at robots.ox.ac.uk
Tue Aug 31 05:10:19 EDT 2004
Hi Christoph,
Thank you very much for your reply. I have got it working with the
ImageSeriseReader.
Thanks!
Jonathan
-----Original Message-----
From: Christoph Palm [mailto:christoph.palm at web.de]
Sent: 27 August 2004 12:04
To: Jonathan Lok-Chuen Lo
Cc: 'ITK User Mailing List'
Subject: RE: [Insight-users] Reading vector images from multiple files
Hi Jonathan,
perhaps you better use the ImageSeriesReader, so you are flexible with the
number of image to be read. The number of image will be generated at run
time by solving a regular expression according to your file names. Then, the
cascading of join image filters can be done within a loop. But remember to
create in each loop iteration a new join image filter!
A more elegant way would be to write your own filter for doing this, but my
first approach will be faster to implement, I think.
Regards
Christoph
Am Don, den 26.08.2004 schrieb Jonathan Lok-Chuen Lo um 13:28:
> 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
--
-------------------------------------
Dr. Christoph Palm
Dipl.-Inform.
Research Center Juelich
Institute of Medicine
D-52428 Juelich
Phone: +49-2461 / 61 4774
Email: ch.palm at fz-juelich.de
Web: www.chripa.de/AtWork
-------------------------------------
More information about the Insight-users
mailing list