[vtkusers] Fwd: How to access raw data of a DICOM image?
John Drescher
drescherjm at gmail.com
Wed Nov 9 10:54:47 EST 2011
---------- Forwarded message ----------
From: ruifeng ma <mrf341 at gmail.com>
Date: Wed, Nov 9, 2011 at 10:44 AM
Subject: Re: [vtkusers] How to access raw data of a DICOM image?
To: John Drescher <drescherjm at gmail.com>
I mean when I use vtk method reader->GetOutput()->GetScalarPointer();
the image is darker. Let me try your suggestions first, it seems that
that I need to change a lot of my code. Thanks for help very much.
2011/11/9 ruifeng ma <mrf341 at gmail.com>
>
> 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.
>
> 2011/11/9 John Drescher <drescherjm at gmail.com>
>>
>> > I use vtkDICOMImageReader to read the dicom file, then I need to do some
>> > work with the raw data. I have tried the
>> > method reader->GetOutput()->GetScalarPointer();
>> > but there are some problems.
>>
>> What problems?
>>
>> John
>
--
John M. Drescher
More information about the vtkusers
mailing list