<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3><FONT
face=Arial size=2>But I have 2GB of memory..</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3><FONT
face=Arial size=2></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3><FONT
face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR>>Do
you have other things running while you're trying to load the large
<BR>>data? Is it possible that you are running out of memory -- that you
<BR>>can't allocate a large enough block of memory to hold the dataset? A
<BR>>dataset of type short with the extents you listed would take up a little
<BR>>over 500 MB of memory.<BR><BR>> Amy<BR>><BR>>Richard Layman
wrote:<BR>> Make sure the data extents are consistent with the data
size.<BR>> Data size should be 769*769*456.<BR>><BR>> On 7/20/06,
*Glauco Silva* < </FONT><A href="mailto:glauco.silva@cenpra.gov.br"><FONT
face="Times New Roman" size=3>glauco.silva@cenpra.gov.br</FONT></A><FONT
face="Times New Roman" size=3> <BR>> <</FONT><A
href="mailto:glauco.silva@cenpra.gov.br"><FONT face="Times New Roman"
size=3>mailto:glauco.silva@cenpra.gov.br</FONT></A><FONT face="Times New Roman"
size=3>>> wrote:<BR>><BR>>
Hi,<BR>> I'm trying to use vtkImageImport to import
some data.<BR>> If i import few data it's all right,
but if i import a lot of<BR>> data, an error of read
memory occurs.<BR>> Is There some problem to import a
lot of data ?<BR>> why does it import few data but
don't import a lot of data ?<BR>>
Thanks<BR>> <BR>>
platform : windows XP<BR>> Dual Core AMD
Opteron(tm)<BR>> Processor
180<BR>> 2.41Ghz, 2.00 GB of RAM
<BR>> <BR>> language
: Python 2.3 , VTK 5<BR>>
<BR>> <BR>>
<BR>> ##part of code when occur error
:<BR>> <BR>>
vtkImages = vtkImageImport()<BR>>
vtkImages.SetDataExtent(0,768,0,768,0,455)<BR>>
vtkImages.SetWholeExtent(0,768,0,768,0,455)<BR>>
vtkImages.SetDataScalarType(4)<BR>>
vtkImages.SetDataSpacing(0.38541666699999999,
0.38541666699999999,<BR>>
1.5)<BR>>
vtkImages.SetDataOrigin((0,0,0))<BR>> # image.data -
> <read-write buffer for 0x03C68E50, ptr<BR>>
0x26AD0020, size 536739840 at 0x00B3A3C0><BR>> #
image.size = 268369920<BR>> # image.itemsize =
2<BR>> vtkImages.CopyImportVoidPointer(image.data,
image.size*image.itemsize)<BR>>
vtkImages.GlobalWarningDisplayOff()<BR>>
vtkImages.Update()<BR>>
##<BR>> <BR>>
<BR>> ##part of code when don't occur
error:<BR>> <BR>>
vtkImages = vtkImageImport()<BR>>
vtkImages.SetDataExtent(0,768,0,768,0,25)<BR>>
vtkImages.SetWholeExtent(0,768,0,768,0,25)<BR>>
vtkImages.SetDataScalarType(4)<BR>>
vtkImages.SetDataSpacing(0.38541666699999999,
0.38541666699999999,<BR>>
1.5)<BR>>
vtkImages.SetDataOrigin((0,0,0))<BR>> # image.data -
> <read-write buffer for 0x03C685C0, ptr<BR>>
0x05FA0020, size 28311552 at 0x00D13A40><BR>> #
image.size = 14155776<BR>> # image.itemsize =
2<BR>> vtkImages.CopyImportVoidPointer(image.data,
image.size*image.itemsize)<BR>>
vtkImages.GlobalWarningDisplayOff()<BR>>
vtkImages.Update()<BR>>
##<BR>><BR>>
_______________________________________________<BR>>
This is the private VTK discussion list.<BR>> Please
keep messages on-topic. Check the FAQ at:<BR>>
</FONT><A href="http://www.vtk.org/Wiki/VTK_FAQ"><FONT face="Times New Roman"
size=3>http://www.vtk.org/Wiki/VTK_FAQ</FONT></A><BR><FONT
face="Times New Roman" size=3>> Follow this link to
subscribe/unsubscribe:<BR>> </FONT><A
href="http://www.vtk.org/mailman/listinfo/vtkusers"><FONT face="Times New Roman"
size=3>http://www.vtk.org/mailman/listinfo/vtkusers</FONT></A><BR><FONT
face="Times New Roman" size=3>> <</FONT><A
href="http://www.vtk.org/mailman/listinfo/vtkusers"><FONT face="Times New Roman"
size=3>http://www.vtk.org/mailman/listinfo/vtkusers</FONT></A><FONT
face="Times New Roman" size=3>></FONT><BR></DIV></FONT></BODY></HTML>