[Insight-users] itkImageSeriesReader
Luis Ibanez
luis.ibanez at kitware.com
Tue, 27 Apr 2004 20:26:06 -0400
Hi Martim,
1) You could use the same reader for reading several
series if after calling Update() you take the output
and invoke DisconectPipeline() on it.
The code will look like:
seriesReader->Update();
ImageType::ConstPointer image1 = seriesReader->GetOutput();
image1->DisconnectPipeline();
// set new series in the file names selector
seriesReader->Update();
ImageType::ConstPointer image2 = seriesReader->GetOutput();
image2->DisconnectPipeline();
... and so on.
2) Do you want to combine the three images into
a single image with three components ?
If so, the Compose3DVectorImageFilter is what you want:
http://www.itk.org/Insight/Doxygen/html/classCompose3DVectorImageFilter.html
Note that there are also RGB and CovariantVector options.
It all depends on the interpretation you want to give to
the composite image.
Regards,
Luis
--------------------------------
Martim Guilherme Schnack wrote:
> Hi,
>
> I have a little problem... I'm using the itkImageSeriesReader to read a
> dicom serie from a directory, but I need to read three series. I couldn't
> find a way to make the reader read the three series, so I create three
> readers and each of them reads one serie.
> But now, I have to combine the three images into one. So, what I'm asking
> is: isn't there a way to make a SeriesReader read more than just one serie?
> And, how can I merge, combine n images into one?
>
> Thanks,
>
> Martim
> "Memories fade, but a Google search never forgets"
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>