<!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>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2>I'm trying to use vtkImageImport to import some
data. </FONT></DIV>
<DIV><FONT face=Arial size=2>If i import few data it's all right, but if i
import a lot of data, an error of read memory occurs.</FONT></DIV>
<DIV><FONT face=Arial size=2>Is There some problem to import a lot of data
?</FONT></DIV>
<DIV><FONT face=Arial size=2>why does it import few data but don't import a lot
of data ?</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>platform : windows XP</FONT></DIV>
<DIV><FONT face=Arial size=2>Dual Core AMD Opteron(tm)</FONT></DIV>
<DIV><FONT face=Arial size=2>Processor 180</FONT></DIV>
<DIV><FONT face=Arial size=2>2.41Ghz, 2.00 GB of RAM</FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>language : Python 2.3 , VTK 5</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>##part of code when occur
error :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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, 1.5)<BR>vtkImages.SetDataOrigin((0,0,0))</FONT></DIV>
<DIV><FONT face=Arial size=2># image.data - > <read-write buffer for
0x03C68E50, ptr 0x26AD0020, size 536739840 at 0x00B3A3C0></FONT></DIV>
<DIV><FONT face=Arial size=2># image.size = 268369920</FONT></DIV>
<DIV><FONT face=Arial size=2># image.itemsize =
2<BR>vtkImages.CopyImportVoidPointer(image.data,
image.size*image.itemsize)<BR>vtkImages.GlobalWarningDisplayOff()<BR>vtkImages.Update()<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>##</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>##part of code when don't occur error:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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, 1.5)<BR>vtkImages.SetDataOrigin((0,0,0))</FONT></DIV>
<DIV><FONT face=Arial size=2># image.data - > <read-write buffer for
0x03C685C0, ptr 0x05FA0020, size 28311552 at 0x00D13A40></FONT></DIV>
<DIV><FONT face=Arial size=2># image.size = 14155776</FONT></DIV>
<DIV><FONT face=Arial size=2># image.itemsize =
2<BR>vtkImages.CopyImportVoidPointer(image.data,
image.size*image.itemsize)<BR>vtkImages.GlobalWarningDisplayOff()<BR>vtkImages.Update()<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>##</FONT></DIV></FONT></DIV></BODY></HTML>