Hi, <div><br></div><div>I will use the code that i do. I hope be good.</div><div><br></div><div>Ítalo Mendes<br><br><div class="gmail_quote">2010/12/21 David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">If you would be so kind as to fix these examples to demonstrate a<br>
reasonable usage:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/Images/ImageExport" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/Images/ImageExport</a><br>
<div class="im"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/Images/ImageImport" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/Images/ImageImport</a><br>
<br>
</div>it would be much appreciated!<br>
<br>
Thanks,<br>
<font color="#888888"><br>
David<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
On Tue, Dec 21, 2010 at 9:32 AM, Italo Ribeiro <<a href="mailto:italo.ribeiro@gmail.com">italo.ribeiro@gmail.com</a>> wrote:<br>
> Hi,<br>
> I get use vtkImageExport, the problem is the array type must be same of the<br>
> DataScalarType of image.<br>
> thanks guys for you help.<br>
><br>
> 2010/12/21 Italo Ribeiro <<a href="mailto:italo.ribeiro@gmail.com">italo.ribeiro@gmail.com</a>><br>
>><br>
>> Hi,<br>
>> I get use vtkImageImport but i am trying use vtkImageExport, it dont copy<br>
>> the values.<br>
>><br>
>> 2010/12/16 David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>><br>
>>>><br>
>>>> There is a working example as part of the VTK regression tests:<br>
>>>> VTK/Imaging/Testing/Cxx/ImportExport.cxx<br>
>>><br>
>>> Yes, but it has some bizarre lines<br>
>>> (reader->SetDataExtent(0,63,0,63,1,93); reader->SetDataMask(0x7fff);),<br>
>>> exports before it imports, and is generally as unclear as a test usually is.<br>
>>> (Maybe Italo will argue otherwise)<br>
>>> I'd rather see a simpler demo which programmatically creates a (2D) image<br>
>>> in memory (following some standard convention) and then loads it into a<br>
>>> vtkImageData. It should also explain the conventions of the input (array<br>
>>> created in memory) and how it maps to the output indices of the<br>
>>> vtkImageData.<br>
>>> David<br>
>>> _______________________________________________<br>
>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>><br>
>>> Visit other Kitware open-source projects at<br>
>>> <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:<br>
>>> <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>
>><br>
>><br>
>><br>
>> --<br>
>> Ítalo Mendes<br>
>> <a href="http://ogre.irados.org" target="_blank">ogre.irados.org</a><br>
><br>
><br>
><br>
> --<br>
> Ítalo Mendes<br>
> <a href="http://ogre.irados.org" target="_blank">ogre.irados.org</a><br>
><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>