[vtkusers] how to work with imagedata
h0ppel
h0ppel at web.de
Wed May 18 07:17:31 EDT 2011
hi,
I've created imagedate on this way:
vtkImageData myImage = new vtkImageData();
myImage.SetDimensions(1392, 1040, 1);
myImage.SetSpacing(1, 1, 1);
myImage.SetOrigin(0, 0, 0);
myImage.SetNumberOfScalarComponents(1);
myImage.SetScalarTypeToFloat();
myImage.AllocateScalars();
myImage.GetPointData().SetScalars(vtkArray);
It works fine and in the viewer the picture look perfect...
but how can I work with this picture without saving befor?
vor example displaying the picture in a renderwindow
nowI see nothing... I think I need to interpret the pixel values first
like in the viewer.
thanks
--
View this message in context: http://vtk.1045678.n5.nabble.com/how-to-work-with-imagedata-tp4406199p4406199.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list