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.<br><br><div class="gmail_quote">2010/9/10 Jim Peterson <span dir="ltr">&lt;<a href="mailto:jimcp@cox.net" target="_blank">jimcp@cox.net</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I think GetScalarPointer returns an address of the scalar that still needs to be dereferenced according to the scalar type for the image.<br>
<br>
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.<br>
<br>
<br>
Italo Ribeiro wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>
Hi,<br>
<br>
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:<br>
<br>
image-&gt;GetScalarPointer(image_coordinate);<br>
<br>
I see the correct value with software ITKsnap, i must use ITK for get correct intensity value?<br>
<br>
-- <br>
Ítalo Mendes<br>
</div></div><a href="http://ogre.irados.org" target="_blank">ogre.irados.org</a> &lt;<a href="http://ogre.irados.org" target="_blank">http://ogre.irados.org</a>&gt;<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
  <br>
</blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Ítalo Mendes<br><a href="http://ogre.irados.org" target="_blank">ogre.irados.org</a><br>