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

Glauco Silva glauco.silva at cenpra.gov.br
Thu Jul 20 14:41:16 EDT 2006


But I have 2GB  of memory..



>Do you have other things running while you're trying to load the large 
>data? Is it possible that you are running out of memory -- that you 
>can't allocate a large enough block of memory to hold the dataset? A 
>dataset of type short with the extents you listed would take up a little 
>over 500 MB of memory.

> Amy
>
>Richard Layman wrote:
> Make sure the data extents are consistent with the data size.
> Data size should be 769*769*456.
>
> On 7/20/06, *Glauco Silva* < glauco.silva at cenpra.gov.br 
> <mailto:glauco.silva at cenpra.gov.br>> wrote:
>
>     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()
>     ##
>
>     _______________________________________________
>     This is the private VTK discussion list.
>     Please keep messages on-topic. Check the FAQ at:
>     http://www.vtk.org/Wiki/VTK_FAQ
>     Follow this link to subscribe/unsubscribe:
>     http://www.vtk.org/mailman/listinfo/vtkusers
>     <http://www.vtk.org/mailman/listinfo/vtkusers>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060720/98f5da37/attachment.htm>


More information about the vtkusers mailing list