[vtkusers] vtkGDCMImageReader
Rao Ruvva
KRuvva at robodoc.com
Mon Dec 13 22:02:52 EST 2010
Mark,
I have got VTK 5.6 and GDCM 2.0.16 and compiled successfully. I checked the USE_VTK option while compiling GDCM. All the examples were built without any issues. When I execute gdcmvolume (from Utilities/VTK/Examples/Cxx which uses the vtkGDCMImageReader) , I get the following error:
ERROR: In ~/VTK/Filtering/vtkDemandDrivenPipeline.cxx, line 803
vtkStreamingDemandDrivenPipeline (0x91634d8): Input for connection index 0 on input port index 0 for algorithm vtkFixedPointVolumeRayCastMapper(0xb5b28008) is NULL, but a vtkImageData is required.
Looks like problem in VTK.
I used "gdcmData/GE_DLX-8-MONO2-Multiframe-Jpeg_Lossless.dcm" as input.
I get the same error with my DICOM data set.
Any ideas?
Thanks
Rao
________________________________________
From: Mark Roden [mmroden at gmail.com]
Sent: Thursday, December 09, 2010 10:21 AM
To: Rao Ruvva
Cc: VTK
Subject: Re: vtkGDCMImageReader
Hi Rao,
The best thing for a linux system is probably to build via cmake.
Mark
On Thu, Dec 9, 2010 at 9:57 AM, Rao Ruvva <KRuvva at robodoc.com> wrote:
> Mark,
>
> Thanks for your response. I'll install GDCM and try.
>
> I was looking at Sourceforge for GDCM for Linux and found installation files for 64 bit systems. But I am on 32 bit system. Any ideas, from where I get the GDCM source for 32 bit Linux system?
>
> Thank you
> Rao
>
> ________________________________________
> From: Mark Roden [mmroden at gmail.com]
> Sent: Wednesday, December 08, 2010 8:32 PM
> To: Rao Ruvva
> Cc: VTK
> Subject: vtkGDCMImageReader
>
> Hi Rao,
>
> You might want to try the vtkGDCMImageReader class. This class is
> part of the gdcm project.
>
> You'll need to download GDCM from sourceforge, and then build it using
> cmake with the option to use vtk checked. I don't know your level of
> using vtk, but I'd assume it's on the level of code, which would mean
> building via cmake. gdcm on top of vtk is fairly straightforward,
> although you will need to use the IPP sorter class to sort your images
> by z position.
>
> This wiki entry should help:
> http://sourceforge.net/apps/mediawiki/gdcm/index.php?title=Using_GDCM_API#Automatic_ordering_of_slices_for_vtkGDCMImageReader.SetFileNames
>
> Good luck!
> Mark
>
More information about the vtkusers
mailing list