[vtkusers] vtkImageData to C array

David Doria daviddoria at gmail.com
Tue Oct 12 07:37:37 EDT 2010


On Tue, Oct 12, 2010 at 7:21 AM, Jothy <jothybasu at gmail.com> wrote:
> Hi all,
>
> I want to convert a vtkImageData to a C array.
>
> I don't like to use imgData->hgetScalarPointer(i,j,k), because it will be
> too slow for my purpose.
>
> How to do this?
>
> Any hints?

I believe vtkImageExport is for this purpose. I started a shell here:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/Images/ImageExport

it would be great if you figure it out if you could fill it in :)

David



More information about the vtkusers mailing list