[vtkusers] Fwd: How to access raw data of a DICOM image?
John Drescher
drescherjm at gmail.com
Wed Nov 9 10:57:38 EST 2011
---------- Forwarded message ----------
From: John Drescher <drescherjm at gmail.com>
Date: Wed, Nov 9, 2011 at 10:57 AM
Subject: Re: [vtkusers] How to access raw data of a DICOM image?
To: ruifeng ma <mrf341 at gmail.com>
On Wed, Nov 9, 2011 at 10:26 AM, ruifeng ma <mrf341 at gmail.com> wrote:
> It seems the function reader->GetOutput()->GetScalarPointer(); has changed
> the raw data in some way.
> I use GDCM lib to get the raw data, the method is GDCM::Bitmap::GetBuffer,
> and finish my work successfully. When I use the same method, the image seems
> to be darker when it's showed. I have no idea what is wrong.
>
The dicom reader should honor the slope and rescale intercept from the
dicom file. Perhaps that is the difference.
John
--
John M. Drescher
More information about the vtkusers
mailing list