<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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.<br>
<br>
- Amy<br>
<br>
Richard Layman wrote:
<blockquote
 cite="midb79cf6510607200828r706ede69s5a64f5541cee930e@mail.gmail.com"
 type="cite">Make sure the data extents are consistent with the data
size.<br>
Data size should be 769*769*456.<br>
  <br>
  <div><span class="gmail_quote">On 7/20/06, <b
 class="gmail_sendername">Glauco Silva</b> &lt;<a
 href="mailto:glauco.silva@cenpra.gov.br">
glauco.silva@cenpra.gov.br</a>&gt; wrote:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div>
    <div 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>&nbsp;</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&nbsp;of RAM</font>&nbsp;</div>
    <div>&nbsp;</div>
    <div><font face="Arial" size="2">language : Python 2.3 , VTK 5</font></div>
    <div>&nbsp;</div>
    <div>&nbsp;</div>
    <div>&nbsp;</div>
    <div><font face="Arial" size="2">##part of code when&nbsp;occur error&nbsp;:</font></div>
    <div>&nbsp;</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 - &gt; &lt;read-write
buffer for 0x03C68E50, ptr 0x26AD0020, size 536739840 at 0x00B3A3C0&gt;</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">&nbsp;</font></div>
    <div>&nbsp;</div>
    <div><font face="Arial" size="2">
    <div><font face="Arial" size="2">##part of code when don't occur
error:</font></div>
    <div>&nbsp;</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 - &gt; &lt;read-write
buffer for 0x03C685C0, ptr 0x05FA0020, size 28311552 at 0x00D13A40&gt;</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>
    </div>
    </div>
    <br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a
 onclick="return top.js.OpenExtLink(window,event,this)"
 href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
    <a onclick="return top.js.OpenExtLink(window,event,this)"
 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
    </a><br>
    <br>
    <br>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
  </pre>
</blockquote>
</body>
</html>