[Insight-users] DICOM : ITK or VTK
Mathieu Malaterre
mathieu.malaterre at kitware.com
Fri Mar 10 17:17:10 EST 2006
Frank,
Thanks for tending the image, it makes testing much easier.
Without any change I ran the DicomImageReadWrite.cxx example, like this:
$ ./bin/DicomImageReadWrite IM-0001-0052.dcm my.dcm my.png my2.dcm
Looking at the file my.png I don't anything odd with it. Could you
confirm ?
Thanks
Mathieu
Frank Gao wrote:
> Hi Mathieu,
>
> Attached please find the source code, the picture in pic.doc, and the dicom
> file I used.
>
> I am using VTK 5.0, ITK 2.4.0.
>
> By the way, I went to ITK download web page, filled in all the data, but
> could never get out of the page to start downloading.
>
> Thanks,
>
> Frank
>
> -----Original Message-----
> From: Mathieu Malaterre [mailto:mathieu.malaterre at kitware.com]
> Sent: Thursday, March 09, 2006 5:34 AM
> To: gao at mdimaging.com
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] DICOM : ITK or VTK
>
> Frank,
>
> Do you have permission to share this image ? If so could you send it
> to
> me ? That'd be the easiest way.
>
> If not, could you send us a dump of the header using
> 'DicomImageReadPrintTags' (you can find it in the Examples/IO dir). And
> parallel to that send us how you instanciate the itk::Image.
>
> Thanks
> Mathieu
>
> Frank Gao wrote:
>
>>Hi,
>>
>>
>>
>>Can anyone please help with this?
>>
>>
>>
>>First, I use VTK to load 2D DICOM file and display it. Everything is good.
>>
>>
>>
>>Then I try to read 2D DICOM file with itkImageFileReader, and then use
>>itkImageTOVTKImagefilter to load the data into VTK and display it. I got
>>a picture with inverted gray maps (black turns into white).
>>
>>
>>
>>Is there any option in either ITK or VTK side to correct this? Do I have
>>to use any filter to reverse the picture?
>>
>>
>>
>>Your help is really appreciated.
>>
>>
>>
>>Frank
>>
>>
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk.org
>>http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list