[vtkusers] Converting .jpg image file to .vti image file
Adekunle Adeshina
codedengineer at yahoo.com
Wed Sep 21 19:00:07 EDT 2011
Thank you David.
But how do i use vtkJPEGReader and vtkXMLImageDataWriter?
Thank you.
Best Regards
________________________________
From: David Doria <daviddoria at gmail.com>
To: Adekunle Adeshina <codedengineer at yahoo.com>
Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
Sent: Wednesday, September 21, 2011 3:55 PM
Subject: Re: [vtkusers] Converting .jpg image file to .vti image file
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110921/b798fb21/attachment.htm>
More information about the vtkusers
mailing list