[vtkusers] How save vtkImageData to disk

David E DeMarle dave.demarle at kitware.com
Tue Mar 16 14:02:43 EDT 2010


Try vtkXMLImageDataWriter (produces .vti) or vtkDataSetWriter
(produces legacy .vtk)

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



On Tue, Mar 16, 2010 at 1:43 PM, KS Jothybasu <jothybasu at gmail.com> wrote:
> I find JPEGReader,PNGReader,DICOMReader.
>
> Which class to use vtkImageReader, I want to write a 3D image data along
> with all the attrubutes like origin, spacing, center,etc...
>
> Thanks
>
> Jothy
>
> On Tue, Mar 16, 2010 at 5:37 PM, John Drescher <drescherjm at gmail.com> wrote:
>>
>> On Tue, Mar 16, 2010 at 1:36 PM, John Drescher <drescherjm at gmail.com>
>> wrote:
>> > On Tue, Mar 16, 2010 at 1:10 PM, KS Jothybasu <jothybasu at gmail.com>
>> > wrote:
>> >> Hi all,
>> >>
>> >> Is thery any method in vtk to save the vtkImageDATA in any format( easy
>> >> to
>> >> read back) to disk?
>> >>
>> >
>> > Whats wrong with the builtin file readers and writers?
>> >
>> I am taking about the VTK classes that read and write images.
>>
>> John
>
>
> _______________________________________________
> 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
>
>



More information about the vtkusers mailing list