[vtkusers] converting vtkImagaData

Koning, P.J.H. de (LKEB) P.J.H.de_Koning at lumc.nl
Mon Sep 30 09:39:11 EDT 2002


28-09-02 16:51:17, Steffen Oeltze <Steffen.Oeltze at Student.Uni-Magdeburg.DE> wrote:

use vtkImageData::GetScalarPointer(). This will give you a void pointer to the first element of the data.

>Dear VTK-users,
>
>I'm using VTK to read a volume from disc into the data structure 
>vtkImageData. However,
>I would like to enable another Graphics Library (VGL) to access this 
>data. Of course, VGL
>can't manage a vtkImageData-structure. Therefore, I would like to 
>convert the vtkImagaData
>into a standard C/C++ array.
>Is there a VTK-method I can use for this ?
>
>Thanks,
>Steffen
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
>





More information about the vtkusers mailing list