[Insight-users] Re: Seamless VTK-ITK pipeline connection
Luis Ibanez
luis.ibanez at kitware.com
Sun Jul 15 08:51:05 EDT 2007
Hi Theodore,
Yes, the vtkKWImageIO class can read DICOM Series.
Please look at the methods:
void SetDirectory( const std::string & directory );
void ReadImageSeries();
When you pass the filename of a DICOM slice to this
class, and then call ReadImageSeries(), the classs
will find the series of the DICOM file, and collect
all other slices of the same series from that directory.
Regards,
Luis
----------------------
Mutanga Theodore wrote:
> Hello there
>
> I was reading the Seamless VTK-ITK pipeline connection contribution on the
> Insight Journal and I am wondering if you have any demonstration of a
> pipeline with how this can be used to read a DICOM series.
>
> I have implemented a pipeline based on the Medical Image Example and I
> read in a dicom series using ITK series reader , then I connect to VTK and
> try to display the 3D image. What happens now is that if I pass output
> directly from connection to viewer I get a segmentation fault but if I
> first write connection output to file (.vti) and then read it with XML
> file reader and then pass the readers output to viewer, everthing works
> well.
> Do you have any idea what is going on ? Why can't I view the output
> directly from the connector ?
>
> Hope to hear from you.
>
> T.
>
>
More information about the Insight-users
mailing list