[vtkusers] Don't import a lot of data !!??

Glauco Silva glauco.silva at cenpra.gov.br
Thu Jul 20 10:46:20 EDT 2006


Hi,
I'm trying to use vtkImageImport to import some data. 
If i import few data it's all right, but if i import a lot of data, an error of read memory occurs.
Is There some problem to import a lot of data ?
why does it import few data but don't import a lot of data ?
Thanks

platform : windows XP
Dual Core AMD Opteron(tm)
Processor 180
2.41Ghz, 2.00 GB of RAM 

language : Python 2.3 , VTK 5



##part of code when occur error :

vtkImages = vtkImageImport()
vtkImages.SetDataExtent(0,768,0,768,0,455)
vtkImages.SetWholeExtent(0,768,0,768,0,455)
vtkImages.SetDataScalarType(4)
vtkImages.SetDataSpacing(0.38541666699999999, 0.38541666699999999, 1.5)
vtkImages.SetDataOrigin((0,0,0))
# image.data - > <read-write buffer for 0x03C68E50, ptr 0x26AD0020, size 536739840 at 0x00B3A3C0>
# image.size = 268369920
# image.itemsize = 2
vtkImages.CopyImportVoidPointer(image.data, image.size*image.itemsize)
vtkImages.GlobalWarningDisplayOff()
vtkImages.Update()

##


##part of code when don't occur error:

vtkImages = vtkImageImport()
vtkImages.SetDataExtent(0,768,0,768,0,25)
vtkImages.SetWholeExtent(0,768,0,768,0,25)
vtkImages.SetDataScalarType(4)
vtkImages.SetDataSpacing(0.38541666699999999, 0.38541666699999999, 1.5)
vtkImages.SetDataOrigin((0,0,0))
# image.data - > <read-write buffer for 0x03C685C0, ptr 0x05FA0020, size 28311552 at 0x00D13A40>
# image.size = 14155776
# image.itemsize = 2
vtkImages.CopyImportVoidPointer(image.data, image.size*image.itemsize)
vtkImages.GlobalWarningDisplayOff()
vtkImages.Update()

##
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060720/c546116e/attachment.htm>


More information about the vtkusers mailing list