[vtkusers] Copy matrix fast for VTK

Italo Ribeiro italo.ribeiro at gmail.com
Tue Dec 21 10:59:12 EST 2010


Hi,

I will use the code that i do. I hope be good.

Ítalo Mendes

2010/12/21 David Doria <daviddoria at gmail.com>

> If you would be so kind as to fix these examples to demonstrate a
> reasonable usage:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/Images/ImageExport
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/Images/ImageImport
>
> it would be much appreciated!
>
> Thanks,
>
> David
>
>
>
> On Tue, Dec 21, 2010 at 9:32 AM, Italo Ribeiro <italo.ribeiro at gmail.com>
> wrote:
> > Hi,
> > I get use vtkImageExport, the problem is the array type must be same of
> the
> > DataScalarType of image.
> > thanks guys for you help.
> >
> > 2010/12/21 Italo Ribeiro <italo.ribeiro at gmail.com>
> >>
> >> Hi,
> >> I get use vtkImageImport but i am trying use vtkImageExport, it dont
> copy
> >> the values.
> >>
> >> 2010/12/16 David Doria <daviddoria at gmail.com>
> >>>>
> >>>> There is a working example as part of the VTK regression tests:
> >>>> VTK/Imaging/Testing/Cxx/ImportExport.cxx
> >>>
> >>> Yes, but it has some bizarre lines
> >>> (reader->SetDataExtent(0,63,0,63,1,93);  reader->SetDataMask(0x7fff);),
> >>> exports before it imports, and is generally as unclear as a test
> usually is.
> >>> (Maybe Italo will argue otherwise)
> >>> I'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.
> >>> David
> >>> _______________________________________________
> >>> Powered by www.kitware.com
> >>>
> >>> Visit other Kitware open-source projects at
> >>> http://www.kitware.com/opensource/opensource.html
> >>>
> >>> Please keep messages on-topic and check the VTK FAQ at:
> >>> http://www.vtk.org/Wiki/VTK_FAQ
> >>>
> >>> Follow this link to subscribe/unsubscribe:
> >>> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>
> >>
> >>
> >>
> >> --
> >> Ítalo Mendes
> >> ogre.irados.org
> >
> >
> >
> > --
> > Ítalo Mendes
> > ogre.irados.org
> >
>



-- 
Ítalo Mendes
ogre.irados.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101221/721038cf/attachment.htm>


More information about the vtkusers mailing list