[vtkusers] How get DICOM image intensity?

Italo Ribeiro italo.ribeiro at gmail.com
Fri Sep 10 10:22:26 EDT 2010


Using GetScalarType the type returned is short, i was using int. But the
value maximum showed is 1024 and i see the maximum short value is 32767 and
the intensity value is not corret.

2010/9/10 Jim Peterson <jimcp at cox.net>

> I think GetScalarPointer returns an address of the scalar that still needs
> to be dereferenced according to the scalar type for the image.
>
> I googled  - vtk getscalarpointer - and the class reference is pretty
> complete. you probably need to use GetScalarType to determine how to cast
> the pointer from  GetScalarPointer to dereference the value.
>
>
> Italo Ribeiro wrote:
>
>> Hi,
>>
>> I want get DICOM image intensity of any point. I dont want MIP volume. I
>> am using the code below for get the intensity, but the value is not correct:
>>
>> image->GetScalarPointer(image_coordinate);
>>
>> I see the correct value with software ITKsnap, i must use ITK for get
>> correct intensity value?
>>
>> --
>> Ítalo Mendes
>> ogre.irados.org <http://ogre.irados.org>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
>


-- 
Ítalo Mendes
ogre.irados.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100910/fbfc04ad/attachment.htm>


More information about the vtkusers mailing list