Re: [Gdcm2] gdcm::Image to itk::Image (without itk::GDCMImageIO)
Cross-platform DICOM implementation
Brought to you by:
malat
From: Mathieu M. <mat...@gm...> - 2010-04-24 23:12:54
|
On Tue, Apr 20, 2010 at 2:03 PM, Julien Lemaitre <jul...@su...> wrote: > Hi, > > I want to use the GDCM API to manipulate DICOM images and then be able to > convert them to itk::Images. However I do not want to use itk::GDCMImageIO > (otherwise I would directly manipulate DICOM images through ITK). > > As the ITK documentation says, "itk::GDCMImageIO makes use of GDCM" -- but I > need a method taking a gdcm::Image in input and outputting an itk::Image. Is > there such a method in GDCM or ITK? > > (Justification: I am adding DICOM support into a lib and considered packing > ITK with it because some clients will use both DICOM and ITK. But some > clients will not need ITK so I opted for GDCM.) Copy paste the code from itk::GDCMImageIO, by definition this is the section of code that takes in a gdcm::Image and convert it to a itk::Image. HTH -- Mathieu |