Hi,<div><br></div><div>I get use vtkImageExport, the problem is the array type must be same of the DataScalarType of image.</div><div><br></div><div>thanks guys for you help.</div><div><br></div><div><br><div class="gmail_quote">

2010/12/21 Italo Ribeiro <span dir="ltr">&lt;<a href="mailto:italo.ribeiro@gmail.com">italo.ribeiro@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi, <div><br></div><div>I get use vtkImageImport but i am trying use vtkImageExport, it dont copy the values.<br><br><div class="gmail_quote">2010/12/16 David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5"><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div>There is a working example as part of the VTK regression tests:</div></div>

VTK/Imaging/Testing/Cxx/ImportExport.cxx</blockquote><div><br></div></div>Yes, but it has some bizarre lines (reader-&gt;SetDataExtent(0,63,0,63,1,93);  reader-&gt;SetDataMask(0x7fff);), exports before it imports, and is generally as unclear as a test usually is. (Maybe Italo will argue otherwise)</div>



<div class="gmail_quote"><br></div><div class="gmail_quote">I&#39;d rather see a simpler demo which programmatically creates a (2D) image in memory (following some standard convention) and then loads it into a vtkImageData. It should also explain the conventions of the input (array created in memory) and how it maps to the output indices of the vtkImageData.</div>



<div class="gmail_quote"><br></div><font color="#888888"><div class="gmail_quote"><div>David </div></div>
</font><br></div></div><div class="im">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></div></blockquote></div><br><br clear="all"><br>-- <br><div class="im">Ítalo Mendes<br><a href="http://ogre.irados.org" target="_blank">ogre.irados.org</a><br>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Ítalo Mendes<br><a href="http://ogre.irados.org">ogre.irados.org</a><br>
</div>