[vtkusers] getTuple1() method problem

Emmanouil Moschidis moshman65 at yahoo.com
Fri Jun 8 09:49:19 EDT 2007


Hi 
i am tryign to get the pixels from a vtkImageData but it seems that the line 

myImage->GetPointData()->GetScalars()->GetTuple1(number); 

causes a run time error. number is an integer and myImage a pointer to vtkImageData. Is there any problem with this method? 

Otherwise is there a better way of accessing the pixels of a vtkImageData? I 've seen the GetScalarPointer() method but i am not sure how to use it.

Thanks 

       
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070608/ee94440a/attachment.htm>


More information about the vtkusers mailing list