[vtkusers] Read DICOM memory stream to use in VTK

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri Dec 10 03:25:40 EST 2010


On Thu, Dec 9, 2010 at 2:47 AM, BountyHuntA <Martin_Klamm at gmx.de> wrote:
>
> Hello.
>
> I develop a DICOM rendering with VTK in connection with a JAVA Web-Service.
> The user send some DICOM images to the Web-Service and JNA passes a pointer
> to the DICOM files in the RAM from the JAVA side to C++-VTK.
> I have now the problem that GDCM can only read real files from HDD
> (setFileNames etc.).

This is incorrect. GDCM offer an API to read from a std::istream&.

http://gdcm.sourceforge.net/html/classgdcm_1_1Reader.html#a2fdbf80e6dedc1f3a127a68d6ab11341

gdcm::Reader::SetStream

The vtkGDCMImageReader however only offer a filename API.


HTH
-- 
Mathieu



More information about the vtkusers mailing list