AW: [vtkusers] scalar value ??????

Waltraud Henrich henrich at
Thu Sep 26 06:42:59 EDT 2002

My problem is, that I know the coordinates of an pixel (vtkImageData) and I
want to know the scalar value (gray value) of this pixel. How can I get this
gray value?

Thanks a lot :-) 

-----Ursprüngliche Nachricht-----
Von: Jeremy Winston [mailto:winston at]
Gesendet: Freitag, 20. September 2002 14:35
An: Waltraud Henrich
Cc: 'vtkusers at'
Betreff: Re: [vtkusers] scalar value ??????

Waltraud Henrich wrote:
> I would like get the scalar value at the mouse cursor when I click
> the mouse button.  I can get the pixel coordinates .

The scalar value of what?

If you want the scalar value of the closest pickable thing,
use vtkCellPicker to pick a cell, and query the scalar value
of the points of that cell.


for an example of vtkCellpicker's use.


More information about the vtkusers mailing list