enum cv::ImreadModes |
Imread flags.
enum cv::ImwriteFlags |
Imwrite flags.
Enumerator | |
---|---|
IMWRITE_JPEG_QUALITY | For JPEG, it can be a quality from 0 to 100 (the higher is the better). Default value is 95. |
IMWRITE_JPEG_PROGRESSIVE | Enable JPEG features, 0 or 1, default is False. |
IMWRITE_JPEG_OPTIMIZE | Enable JPEG features, 0 or 1, default is False. |
IMWRITE_JPEG_RST_INTERVAL | JPEG restart interval, 0 - 65535, default is 0 - no restart. |
IMWRITE_JPEG_LUMA_QUALITY | Separate luma quality level, 0 - 100, default is -1 - don't use. If JPEG_LIB_VERSION < 70, Not supported. |
IMWRITE_JPEG_CHROMA_QUALITY | Separate chroma quality level, 0 - 100, default is -1 - don't use. If JPEG_LIB_VERSION < 70, Not supported. |
IMWRITE_JPEG_SAMPLING_FACTOR | For JPEG, set sampling factor. See cv::ImwriteJPEGSamplingFactorParams. |
IMWRITE_PNG_COMPRESSION | For PNG, it can be the compression level from 0 to 9. A higher value means a smaller size and longer compression time. If specified, strategy is changed to IMWRITE_PNG_STRATEGY_DEFAULT (Z_DEFAULT_STRATEGY). Default value is 1 (best speed setting). |
IMWRITE_PNG_STRATEGY | One of cv::ImwritePNGFlags, default is IMWRITE_PNG_STRATEGY_RLE. |
IMWRITE_PNG_BILEVEL | Binary level PNG, 0 or 1, default is 0. |
IMWRITE_PXM_BINARY | For PPM, PGM, or PBM, it can be a binary format flag, 0 or 1. Default value is 1. |
IMWRITE_EXR_TYPE | override EXR storage type (FLOAT (FP32) is default) |
IMWRITE_EXR_COMPRESSION | override EXR compression type (ZIP_COMPRESSION = 3 is default) |
IMWRITE_EXR_DWA_COMPRESSION_LEVEL | override EXR DWA compression level (45 is default) |
IMWRITE_WEBP_QUALITY | 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_HDR_COMPRESSION | specify HDR compression |
IMWRITE_PAM_TUPLETYPE | For PAM, sets the TUPLETYPE field to the corresponding string value that is defined for the format. |
IMWRITE_TIFF_RESUNIT | For TIFF, use to specify which DPI resolution unit to set; see libtiff documentation for valid values. |
IMWRITE_TIFF_XDPI | For TIFF, use to specify the X direction DPI. |
IMWRITE_TIFF_YDPI | For TIFF, use to specify the Y direction DPI. |
IMWRITE_TIFF_COMPRESSION | For TIFF, use to specify the image compression scheme. See cv::ImwriteTiffCompressionFlags. Note, for images whose depth is CV_32F, only libtiff's SGILOG compression scheme is used. For other supported depths, the compression scheme can be specified by this flag; LZW compression is the default. |
IMWRITE_TIFF_ROWSPERSTRIP | For TIFF, use to specify the number of rows per strip. |
IMWRITE_TIFF_PREDICTOR | For TIFF, use to specify predictor. See cv::ImwriteTiffPredictorFlags. |
IMWRITE_JPEG2000_COMPRESSION_X1000 | For JPEG2000, use to specify the target compression rate (multiplied by 1000). The value can be from 0 to 1000. Default is 1000. |
IMWRITE_AVIF_QUALITY | For AVIF, it can be a quality between 0 and 100 (the higher the better). Default is 95. |
IMWRITE_AVIF_DEPTH | For AVIF, it can be 8, 10 or 12. If >8, it is stored/read as CV_32F. Default is 8. |
IMWRITE_AVIF_SPEED | For AVIF, it is between 0 (slowest) and (fastest). Default is 9. |
enum cv::ImwritePAMFlags |
enum cv::ImwritePNGFlags |
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.
Enumerator | |
---|---|
IMWRITE_TIFF_COMPRESSION_NONE | dump mode |
IMWRITE_TIFF_COMPRESSION_CCITTRLE | CCITT modified Huffman RLE. |
IMWRITE_TIFF_COMPRESSION_CCITTFAX3 | CCITT Group 3 fax encoding. |
IMWRITE_TIFF_COMPRESSION_CCITT_T4 | CCITT T.4 (TIFF 6 name) |
IMWRITE_TIFF_COMPRESSION_CCITTFAX4 | CCITT Group 4 fax encoding. |
IMWRITE_TIFF_COMPRESSION_CCITT_T6 | CCITT T.6 (TIFF 6 name) |
IMWRITE_TIFF_COMPRESSION_LZW | Lempel-Ziv & Welch. |
IMWRITE_TIFF_COMPRESSION_OJPEG | !6.0 JPEG |
IMWRITE_TIFF_COMPRESSION_JPEG | JPEG DCT compression |
IMWRITE_TIFF_COMPRESSION_T85 | !TIFF/FX T.85 JBIG compression |
IMWRITE_TIFF_COMPRESSION_T43 | !TIFF/FX T.43 colour by layered JBIG compression |
IMWRITE_TIFF_COMPRESSION_NEXT | NeXT 2-bit RLE. |
IMWRITE_TIFF_COMPRESSION_CCITTRLEW | #1 w/ word alignment |
IMWRITE_TIFF_COMPRESSION_PACKBITS | Macintosh RLE. |
IMWRITE_TIFF_COMPRESSION_THUNDERSCAN | ThunderScan RLE. |
IMWRITE_TIFF_COMPRESSION_IT8CTPAD | IT8 CT w/padding. |
IMWRITE_TIFF_COMPRESSION_IT8LW | IT8 Linework RLE. |
IMWRITE_TIFF_COMPRESSION_IT8MP | IT8 Monochrome picture. |
IMWRITE_TIFF_COMPRESSION_IT8BL | IT8 Binary line art. |
IMWRITE_TIFF_COMPRESSION_PIXARFILM | Pixar companded 10bit LZW. |
IMWRITE_TIFF_COMPRESSION_PIXARLOG | Pixar companded 11bit ZIP. |
IMWRITE_TIFF_COMPRESSION_DEFLATE | Deflate compression, legacy tag. |
IMWRITE_TIFF_COMPRESSION_ADOBE_DEFLATE | Deflate compression, as recognized by Adobe. |
IMWRITE_TIFF_COMPRESSION_DCS | Kodak DCS encoding. |
IMWRITE_TIFF_COMPRESSION_JBIG | ISO JBIG. |
IMWRITE_TIFF_COMPRESSION_SGILOG | SGI Log Luminance RLE. |
IMWRITE_TIFF_COMPRESSION_SGILOG24 | SGI Log 24-bit packed. |
IMWRITE_TIFF_COMPRESSION_JP2000 | Leadtools JPEG2000. |
IMWRITE_TIFF_COMPRESSION_LERC | ESRI Lerc codec: https://github.com/Esri/lerc. |
IMWRITE_TIFF_COMPRESSION_LZMA | LZMA2. |
IMWRITE_TIFF_COMPRESSION_ZSTD | ZSTD: WARNING not registered in Adobe-maintained registry. |
IMWRITE_TIFF_COMPRESSION_WEBP | WEBP: WARNING not registered in Adobe-maintained registry. |
IMWRITE_TIFF_COMPRESSION_JXL | JPEGXL: WARNING not registered in Adobe-maintained registry. |