[vtkusers] Converting .jpg image file to .vti image file

David Doria daviddoria at gmail.com
Wed Sep 21 18:55:06 EDT 2011


On Wed, Sep 21, 2011 at 6:53 PM, Adekunle Adeshina
<codedengineer at yahoo.com> wrote:
> Hi All,
> Please can someone explain to me how to convert my .jpg image file to .vti
> image file to be able to use it in my application?
> I would be so glad to receive from you very soon.
> Many thanks.
> Best Regards,
> A.M. Adeshina

Use a vtkJPEGReader to get a vtkImageData from your jpg. Then use a
vtkXMLImageDataWriter to write a vti file.

David



More information about the vtkusers mailing list