[vtkusers] vtkScalars from vtkImageData

amit saxena amit_saxena01 at yahoo.com.sg
Thu Nov 16 01:43:32 EST 2000


Hi,
  I am trying to make a volume from a number of
images. I read the data using vtkVolume16Reader. When
I display the images using vtkImageViewer I get the
images, but as soon as I try to get the pointer to the
scalars I get the memory location as 0x000000 and
hence an access voilation. I am doing something like
this :

    vtkImage data = vtkImageData::New();
    ...
    ...
    vtkScalars *scalars =  
data->GetPointData()->GetScalars();

  Where possibly am I going wrong ? 

AMIT


__________________________________________________
Do You Yahoo!?
Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com.sg/




More information about the vtkusers mailing list