21 #ifndef GR_IMAGE_CONVERTER__H
22 #define GR_IMAGE_CONVERTER__H
33 class ImageConverter ;
49 bool toRaw(
Image image_in ,
Image & image_out ,
int scale = 1 ,
bool monochrome_out =
false ) ;
52 bool toJpeg(
Image image_in ,
Image & image_out ,
int scale = 1 ,
bool monochrome_out =
false ) ;
60 bool toRawImp(
Image image_in ,
Image & image_out ,
int scale ,
bool monochrome_out ) ;
61 bool toJpegImp(
Image image_in ,
Image & image_out ,
int scale ,
bool monochrome_out ) ;
ImageConverter()
Default constructor.
An encapsulation of image type, including width, height and number of channels, with support for a st...
bool toRaw(Image image_in, Image &image_out, int scale=1, bool monochrome_out=false)
Converts the image to raw format. Returns a false on error.
An interface for decoding encoded images into a raw format.
A class holding shared read-only image data (Gr::ImageBuffer) and its associated image type (Gr::Imag...
static bool convertible(Gr::ImageType)
Returns true if the image type is convertible.
bool toJpeg(Image image_in, Image &image_out, int scale=1, bool monochrome_out=false)
Converts the image to jpeg format. Returns false on error.
A write interface for libjpeg.
An image format converter that can convert to and from the raw and jpeg formats (only), with scaling and monochrome options.