Jpeg Encoder in VTK?

David Gobbi dgobbi at irus.rri.on.ca
Thu Mar 9 11:53:17 EST 2000


Another class that would be nice is a vtkImageAnyWriter(),
which would have a SetFileFormat() method and/or automatically
identify the file format from from the filename extension.
It would simply create the appropriate vtkImageWriter subclass
and use that to write the file.

 - David

--
  David Gobbi, MSc                    dgobbi at irus.rri.on.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

On Thu, 9 Mar 2000, Sebastien Barre wrote:

> At 11:36 09/03/00 -0500, David Gobbi a écrit:
> 
> >I think that a more conservative approach might be better,
> >i.e. write a vtkJPEGWriter class that uses libjpeg.  That
> >will a) guarantee compliance with the JPEG standard and
> >b) be a lot easier than re-writing the JPEG code.
> 
> Ooops, sorry, I was not clear enough : when I mentioned jpeg-6b, I was 
> implicitly referring to libjpeg. I do agree with you 100%, standard 
> librairies should be used thoroughly. Rewriting a JPEG lib from scratch 
> would not make much sense considering that libjpeg or even libpng or libz 
> (which I'm using in my own medical converter) are stable, portable, and 
> maintained by teams.
> 
> What I was thinking of, is a vtkJpegCodec class as a object-oriented 
> front-end for libjpeg.
> 
> >Just to reiterate, any VTK image readers/writers for non-trivial
> >file formats should be based on existing standard libraries
> >e.g. libtiff, libjpeg, libpng, libnetcdf, etc.
> 
> Yep.
> 
> --
> Sebastien BARRE
> IRCOM-SIC, UMR-CNRS 6615 - Université de Poitiers
> Bât. SP2MI, Bvd 3 - Téléport 2, BP 179 F-86960 Futuroscope Cedex
> Tel. : +33 (0)5 49 49 65 95 / 65 83, Fax : +33 (0)5 49 49 65 70
> http://www-sic.univ-poitiers.fr/barre/ ou  http://www.hds.utc.fr/~barre/
> 

--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list