[vtkusers] JPEG Output for non UNSIGNED_CHAR dataset
Marco Petrone
m.petrone at cineca.it
Tue Jan 16 09:56:22 EST 2001
Jérôme Coloos wrote:
> Hi everybody,
>
> I'm trying to make a JPEG output of my VTK window by using the
> vtkLibJPEGPacker class which I found on
> http://www.cineca.it/download/devel/index.html
>
> But it seems to work only with UNSIGNED_CHAR vtkImageData.
>
> My question is :
>
> How to transform the vtkImageData into an UNSIGNED_CHAR one ?
>
> Thank you.
>
This class makes use of the libjpeg which expects to find this type of data. I suggest you to
make use of a vtkImageCast filter to convert the input image into the right format.
Marco.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: m.petrone.vcf
Type: text/x-vcard
Size: 267 bytes
Desc: Card for Marco Petrone
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20010116/b3a7b297/attachment.vcf>
More information about the vtkusers
mailing list