IMREAD_ANYDEPTH=2,//!< If set, return 16-bit/32-bit image when the input has the corresponding depth, otherwise convert it to 8-bit.
IMREAD_ANYDEPTH=2,//!< If set, return 16-bit/32-bit image when the input has the corresponding depth, otherwise convert it to 8-bit.
IMREAD_ANYCOLOR=4,//!< If set, the image is read in any possible color format.
IMREAD_ANYCOLOR=4,//!< If set, the image is read in any possible color format.
IMREAD_LOAD_GDAL=8,//!< If set, use the gdal driver for loading the image.
IMREAD_LOAD_GDAL=8,//!< If set, use the gdal driver for loading the image.
IMREAD_GRAYSCALE_REDUCED_2=16,//!< If set, always convert image to the single channel grayscale image and the image size reduced 1/2.
IMREAD_REDUCED_GRAYSCALE_2=16,//!< If set, always convert image to the single channel grayscale image and the image size reduced 1/2.
IMREAD_COLOR_REDUCED_2=17,//!< If set, always convert image to the 3 channel BGR color image and the image size reduced 1/2.
IMREAD_REDUCED_COLOR_2=17,//!< If set, always convert image to the 3 channel BGR color image and the image size reduced 1/2.
IMREAD_GRAYSCALE_REDUCED_4=32,//!< If set, always convert image to the single channel grayscale image and the image size reduced 1/4.
IMREAD_REDUCED_GRAYSCALE_4=32,//!< If set, always convert image to the single channel grayscale image and the image size reduced 1/4.
IMREAD_COLOR_REDUCED_4=33,//!< If set, always convert image to the 3 channel BGR color image and the image size reduced 1/4.
IMREAD_REDUCED_COLOR_4=33,//!< If set, always convert image to the 3 channel BGR color image and the image size reduced 1/4.
IMREAD_GRAYSCALE_REDUCED_8=64,//!< If set, always convert image to the single channel grayscale image and the image size reduced 1/8.
IMREAD_REDUCED_GRAYSCALE_8=64,//!< If set, always convert image to the single channel grayscale image and the image size reduced 1/8.
IMREAD_COLOR_REDUCED_8=65//!< If set, always convert image to the 3 channel BGR color image and the image size reduced 1/8.
IMREAD_REDUCED_COLOR_8=65//!< If set, always convert image to the 3 channel BGR color image and the image size reduced 1/8.
};
};
//! Imwrite flags
//! Imwrite flags
@ -91,25 +91,31 @@ enum ImwriteFlags {
IMWRITE_WEBP_QUALITY=64//!< For WEBP, it can be a quality from 1 to 100 (the higher is the better). By default (without any parameter) and for quality above 100 the lossless compression is used.
IMWRITE_WEBP_QUALITY=64//!< For WEBP, it can be a quality from 1 to 100 (the higher is the better). By default (without any parameter) and for quality above 100 the lossless compression is used.
};
};
//! Imwrite PNG specific flags
//! Imwrite PNG specific flags used to tune the compression algorithm.
/** These flags will be modify the way of PNG image compression and will be passed to the underlying zlib processing stage.
IMWRITE_PNG_STRATEGY_DEFAULT=0,//!< Use this value for normal data.
IMWRITE_PNG_STRATEGY_FILTERED=1,
IMWRITE_PNG_STRATEGY_FILTERED=1,//!< Use this value for data produced by a filter (or predictor).Filtered data consists mostly of small values with a somewhat random distribution. In this case, the compression algorithm is tuned to compress them better.
IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY=2,
IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY=2,//!< Use this value to force Huffman encoding only (no string match).
IMWRITE_PNG_STRATEGY_RLE=3,
IMWRITE_PNG_STRATEGY_RLE=3,//!< Use this value to limit match distances to one (run-length encoding).
IMWRITE_PNG_STRATEGY_FIXED=4
IMWRITE_PNG_STRATEGY_FIXED=4//!< Using this value prevents the use of dynamic Huffman codes, allowing for a simpler decoder for special applications.