[vtkusers] problem using vtkImageData::GetScalarComponentAsFloat

Lederer, Maitland mlederer at foster-miller.com
Mon Oct 18 14:59:49 EDT 2004


Good afternoon everyone-

I'm using Tcl and would like to access the scalars of a vtkImageData.  I
tried using 

set foo [imgData GetScalarComponentAsFloat 100 100 0 0]

but got the error message "could not find requested method or method was
called with incorrect arguments."  The point 100,100,0 is definitely
part of the vtkImageData.  I hunted through the archives but didn't find
anything particularly useful.  Has anyone else encountered this sort of
an issue?  Any suggestions?

Thanks,
-Maitland

**************************
M. Maitland Lederer
Staff Engineer 
Foster-Miller, Inc.
(781)684-4618





More information about the vtkusers mailing list