OpenCV  4.10.0
开源计算机视觉
加载中...
搜索中...
没有匹配项
枚举
用于图像文件读取和写入的标志

详细描述

枚举

枚举  cv::ImreadModes {
  cv::IMREAD_UNCHANGED = -1 ,
  cv::IMREAD_GRAYSCALE = 0 ,
  cv::IMREAD_COLOR = 1 ,
  cv::IMREAD_ANYDEPTH = 2 ,
  cv::IMREAD_ANYCOLOR = 4 ,
  cv::IMREAD_LOAD_GDAL = 8 ,
  cv::IMREAD_REDUCED_GRAYSCALE_2 = 16 ,
  cv::IMREAD_REDUCED_COLOR_2 = 17 ,
  cv::IMREAD_REDUCED_GRAYSCALE_4 = 32 ,
  cv::IMREAD_REDUCED_COLOR_4 = 33 ,
  cv::IMREAD_REDUCED_GRAYSCALE_8 = 64 ,
  cv::IMREAD_REDUCED_COLOR_8 = 65 ,
  cv::IMREAD_IGNORE_ORIENTATION = 128
}
 Imread 标志。 更多...
 
枚举  cv::ImwriteEXRCompressionFlags {
  cv::IMWRITE_EXR_COMPRESSION_NO = 0 ,
  cv::IMWRITE_EXR_COMPRESSION_RLE = 1 ,
  cv::IMWRITE_EXR_COMPRESSION_ZIPS = 2 ,
  cv::IMWRITE_EXR_COMPRESSION_ZIP = 3 ,
  cv::IMWRITE_EXR_COMPRESSION_PIZ = 4 ,
  cv::IMWRITE_EXR_COMPRESSION_PXR24 = 5 ,
  cv::IMWRITE_EXR_COMPRESSION_B44 = 6 ,
  cv::IMWRITE_EXR_COMPRESSION_B44A = 7 ,
  cv::IMWRITE_EXR_COMPRESSION_DWAA = 8 ,
  cv::IMWRITE_EXR_COMPRESSION_DWAB = 9
}
 
枚举  cv::ImwriteEXRTypeFlags {
  cv::IMWRITE_EXR_TYPE_HALF = 1 ,
  cv::IMWRITE_EXR_TYPE_FLOAT = 2
}
 
枚举  cv::ImwriteFlags {
  cv::IMWRITE_JPEG_QUALITY = 1 ,
  cv::IMWRITE_JPEG_PROGRESSIVE = 2 ,
  cv::IMWRITE_JPEG_OPTIMIZE = 3 ,
  cv::IMWRITE_JPEG_RST_INTERVAL = 4 ,
  cv::IMWRITE_JPEG_LUMA_QUALITY = 5 ,
  cv::IMWRITE_JPEG_CHROMA_QUALITY = 6 ,
  cv::IMWRITE_JPEG_SAMPLING_FACTOR = 7 ,
  cv::IMWRITE_PNG_COMPRESSION = 16 ,
  cv::IMWRITE_PNG_STRATEGY = 17 ,
  cv::IMWRITE_PNG_BILEVEL = 18 ,
  cv::IMWRITE_PXM_BINARY = 32 ,
  cv::IMWRITE_EXR_TYPE = (3 << 4) + 0 ,
  cv::IMWRITE_EXR_COMPRESSION = (3 << 4) + 1 ,
  cv::IMWRITE_EXR_DWA_COMPRESSION_LEVEL = (3 << 4) + 2 ,
  cv::IMWRITE_WEBP_QUALITY = 64 ,
  cv::IMWRITE_HDR_COMPRESSION = (5 << 4) + 0 ,
  cv::IMWRITE_PAM_TUPLETYPE = 128 ,
  cv::IMWRITE_TIFF_RESUNIT = 256 ,
  cv::IMWRITE_TIFF_XDPI = 257 ,
  cv::IMWRITE_TIFF_YDPI = 258 ,
  cv::IMWRITE_TIFF_COMPRESSION = 259 ,
  cv::IMWRITE_TIFF_ROWSPERSTRIP = 278 ,
  cv::IMWRITE_TIFF_PREDICTOR = 317 ,
  cv::IMWRITE_JPEG2000_COMPRESSION_X1000 = 272 ,
  cv::IMWRITE_AVIF_QUALITY = 512 ,
  cv::IMWRITE_AVIF_DEPTH = 513 ,
  cv::IMWRITE_AVIF_SPEED = 514
}
 Imwrite 标志。 更多...
 
枚举  cv::ImwriteHDRCompressionFlags {
  cv::IMWRITE_HDR_COMPRESSION_NONE = 0 ,
  cv::IMWRITE_HDR_COMPRESSION_RLE = 1
}
 针对 IMWRITE_HDR_COMPRESSION 参数键的 Imwrite HDR 特定值。 更多...
 
枚举  cv::ImwriteJPEGSamplingFactorParams {
  cv::IMWRITE_JPEG_SAMPLING_FACTOR_411 = 0x411111 ,
  cv::IMWRITE_JPEG_SAMPLING_FACTOR_420 = 0x221111 ,
  cv::IMWRITE_JPEG_SAMPLING_FACTOR_422 = 0x211111 ,
  cv::IMWRITE_JPEG_SAMPLING_FACTOR_440 = 0x121111 ,
  cv::IMWRITE_JPEG_SAMPLING_FACTOR_444 = 0x111111
}
 
枚举  cv::ImwritePAMFlags {
  cv::IMWRITE_PAM_FORMAT_NULL = 0 ,
  cv::IMWRITE_PAM_FORMAT_BLACKANDWHITE = 1 ,
  cv::IMWRITE_PAM_FORMAT_GRAYSCALE = 2 ,
  cv::IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA = 3 ,
  cv::IMWRITE_PAM_FORMAT_RGB = 4 ,
  cv::IMWRITE_PAM_FORMAT_RGB_ALPHA = 5
}
 用于定义 PAM 文件中 'TUPLETYPE' 字段的 Imwrite PAM 特定 tupletype 标志。 更多...
 
枚举  cv::ImwritePNGFlags {
  cv::IMWRITE_PNG_STRATEGY_DEFAULT = 0 ,
  cv::IMWRITE_PNG_STRATEGY_FILTERED = 1 ,
  cv::IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY = 2 ,
  cv::IMWRITE_PNG_STRATEGY_RLE = 3 ,
  cv::IMWRITE_PNG_STRATEGY_FIXED = 4
}
 用于调整压缩算法的 Imwrite PNG 特定标志。 更多...
 
枚举  cv::ImwriteTiffCompressionFlags {
  cv::IMWRITE_TIFF_COMPRESSION_NONE = 1 ,
  cv::IMWRITE_TIFF_COMPRESSION_CCITTRLE = 2 ,
  cv::IMWRITE_TIFF_COMPRESSION_CCITTFAX3 = 3 ,
  cv::IMWRITE_TIFF_COMPRESSION_CCITT_T4 = 3 ,
  cv::IMWRITE_TIFF_COMPRESSION_CCITTFAX4 = 4 ,
  cv::IMWRITE_TIFF_COMPRESSION_CCITT_T6 = 4 ,
  cv::IMWRITE_TIFF_COMPRESSION_LZW = 5 ,
  cv::IMWRITE_TIFF_COMPRESSION_OJPEG = 6 ,
  cv::IMWRITE_TIFF_COMPRESSION_JPEG = 7 ,
  cv::IMWRITE_TIFF_COMPRESSION_T85 = 9 ,
  cv::IMWRITE_TIFF_COMPRESSION_T43 = 10 ,
  cv::IMWRITE_TIFF_COMPRESSION_NEXT = 32766 ,
  cv::IMWRITE_TIFF_COMPRESSION_CCITTRLEW = 32771 ,
  cv::IMWRITE_TIFF_COMPRESSION_PACKBITS = 32773 ,
  cv::IMWRITE_TIFF_COMPRESSION_THUNDERSCAN = 32809 ,
  cv::IMWRITE_TIFF_COMPRESSION_IT8CTPAD = 32895 ,
  cv::IMWRITE_TIFF_COMPRESSION_IT8LW = 32896 ,
  cv::IMWRITE_TIFF_COMPRESSION_IT8MP = 32897 ,
  cv::IMWRITE_TIFF_COMPRESSION_IT8BL = 32898 ,
  cv::IMWRITE_TIFF_COMPRESSION_PIXARFILM = 32908 ,
  cv::IMWRITE_TIFF_COMPRESSION_PIXARLOG = 32909 ,
  cv::IMWRITE_TIFF_COMPRESSION_DEFLATE = 32946 ,
  cv::IMWRITE_TIFF_COMPRESSION_ADOBE_DEFLATE = 8 ,
  cv::IMWRITE_TIFF_COMPRESSION_DCS = 32947 ,
  cv::IMWRITE_TIFF_COMPRESSION_JBIG = 34661 ,
  cv::IMWRITE_TIFF_COMPRESSION_SGILOG = 34676 ,
  cv::IMWRITE_TIFF_COMPRESSION_SGILOG24 = 34677 ,
  cv::IMWRITE_TIFF_COMPRESSION_JP2000 = 34712 ,
  cv::IMWRITE_TIFF_COMPRESSION_LERC = 34887 ,
  cv::IMWRITE_TIFF_COMPRESSION_LZMA = 34925 ,
  cv::IMWRITE_TIFF_COMPRESSION_ZSTD = 50000 ,
  cv::IMWRITE_TIFF_COMPRESSION_WEBP = 50001 ,
  cv::IMWRITE_TIFF_COMPRESSION_JXL = 50002
}
 
枚举  cv::ImwriteTiffPredictorFlags {
  cv::IMWRITE_TIFF_PREDICTOR_NONE = 1 ,
  cv::IMWRITE_TIFF_PREDICTOR_HORIZONTAL = 2 ,
  cv::IMWRITE_TIFF_PREDICTOR_FLOATINGPOINT = 3
}
 

枚举类型文档

◆ ImreadModes

#include <opencv2/imgcodecs.hpp>

读取标志。

枚举值
IMREAD_UNCHANGED 
Python: cv.IMREAD_UNCHANGED

如果设置,则返回未更改的加载图像(带有透明通道,否则将被裁剪)。忽略EXIF方向。

IMREAD_GRAYSCALE 
Python: cv.IMREAD_GRAYSCALE

如果设置,始终将图像转换为单通道灰度图像(编解码器内部转换)。

IMREAD_COLOR 
Python: cv.IMREAD_COLOR

如果设置,始终将图像转换为3通道BGR彩色图像。

IMREAD_ANYDEPTH 
Python: cv.IMREAD_ANYDEPTH

如果设置,当输入具有相应的深度时返回16位/32位图像,否则转换为8位。

IMREAD_ANYCOLOR 
Python: cv.IMREAD_ANYCOLOR

如果设置,则图像以任何可能的颜色格式读取。

IMREAD_LOAD_GDAL 
Python: cv.IMREAD_LOAD_GDAL

如果设置,使用gdal驱动程序加载图像。

IMREAD_REDUCED_GRAYSCALE_2 
Python: cv.IMREAD_REDUCED_GRAYSCALE_2

如果设置,始终将图像转换为单通道灰度图像,并将图像大小减少1/2。

IMREAD_REDUCED_COLOR_2 
Python: cv.IMREAD_REDUCED_COLOR_2

如果设置,始终将图像转换为3通道BGR彩色图像,并将图像大小减少1/2。

IMREAD_REDUCED_GRAYSCALE_4 
Python: cv.IMREAD_REDUCED_GRAYSCALE_4

如果设置,始终将图像转换为单通道灰度图像,并将图像大小减少1/4。

IMREAD_REDUCED_COLOR_4 
Python: cv.IMREAD_REDUCED_COLOR_4

如果设置,始终将图像转换为3通道BGR彩色图像,并将图像大小减少1/4。

IMREAD_REDUCED_GRAYSCALE_8 
Python: cv.IMREAD_REDUCED_GRAYSCALE_8

如果设置,始终将图像转换为单通道灰度图像,并将图像大小减少1/8。

IMREAD_REDUCED_COLOR_8 
Python: cv.IMREAD_REDUCED_COLOR_8

如果设置,始终将图像转换为3通道BGR彩色图像,并将图像大小减少1/8。

IMREAD_IGNORE_ORIENTATION 
Python: cv.IMREAD_IGNORE_ORIENTATION

如果设置,将不根据EXIF的方向标志旋转图像。

◆ ImwriteEXRCompressionFlags

#include <opencv2/imgcodecs.hpp>

枚举值
IMWRITE_EXR_COMPRESSION_NO 
Python: cv.IMWRITE_EXR_COMPRESSION_NO

无压缩

IMWRITE_EXR_COMPRESSION_RLE 
Python: cv.IMWRITE_EXR_COMPRESSION_RLE

运行长编码

IMWRITE_EXR_COMPRESSION_ZIPS 
Python: cv.IMWRITE_EXR_COMPRESSION_ZIPS

zlib压缩,每次扫描一行

IMWRITE_EXR_COMPRESSION_ZIP 
Python: cv.IMWRITE_EXR_COMPRESSION_ZIP

zlib压缩,16行扫描块

IMWRITE_EXR_COMPRESSION_PIZ 
Python: cv.IMWRITE_EXR_COMPRESSION_PIZ

基于piz的小波压缩

IMWRITE_EXR_COMPRESSION_PXR24 
Python: cv.IMWRITE_EXR_COMPRESSION_PXR24

有损24位浮点压缩

IMWRITE_EXR_COMPRESSION_B44 
Python: cv.IMWRITE_EXR_COMPRESSION_B44

有损4x4像素块压缩,固定压缩率

IMWRITE_EXR_COMPRESSION_B44A 
Python: cv.IMWRITE_EXR_COMPRESSION_B44A

有损4x4像素块压缩,平场 compress 更多

IMWRITE_EXR_COMPRESSION_DWAA 
Python: cv.IMWRITE_EXR_COMPRESSION_DWAA

有损基于DCT的压缩,32行扫描块。对于部分缓冲区访问更有效。自OpenEXR 2.2.0以来支持。

IMWRITE_EXR_COMPRESSION_DWAB 
Python: cv.IMWRITE_EXR_COMPRESSION_DWAB

有损基于DCT的压缩,256行扫描块。在空间上更高效,比DWAA_COMPRESSION解码完整帧更快。自OpenEXR 2.2.0以来支持。

◆ ImwriteEXRTypeFlags

#include <opencv2/imgcodecs.hpp>

枚举值
IMWRITE_EXR_TYPE_HALF 
Python: cv.IMWRITE_EXR_TYPE_HALF

存储为HALF (FP16)

IMWRITE_EXR_TYPE_FLOAT 
Python: cv.IMWRITE_EXR_TYPE_FLOAT

存储为FP32(默认)

◆ ImwriteFlags

#include <opencv2/imgcodecs.hpp>

Imwrite标志。

枚举值
IMWRITE_JPEG_QUALITY 
Python: cv.IMWRITE_JPEG_QUALITY

对于JPEG,可以是0到100的质量(越高越好)。默认值为95。

IMWRITE_JPEG_PROGRESSIVE 
Python: cv.IMWRITE_JPEG_PROGRESSIVE

启用JPEG功能,0或1,默认为False。

IMWRITE_JPEG_OPTIMIZE 
Python: cv.IMWRITE_JPEG_OPTIMIZE

启用JPEG功能,0或1,默认为False。

IMWRITE_JPEG_RST_INTERVAL 
Python: cv.IMWRITE_JPEG_RST_INTERVAL

JPEG重新启动间隔,0 - 65535,默认为0 - 不重启。

IMWRITE_JPEG_LUMA_QUALITY 
Python: cv.IMWRITE_JPEG_LUMA_QUALITY

单独的亮度质量级别,0 - 100,默认为-1 - 不使用。如果JPEG_LIB_VERSION < 70,则不支持。

IMWRITE_JPEG_CHROMA_QUALITY 
Python: cv.IMWRITE_JPEG_CHROMA_QUALITY

单独的色度质量级别,0 - 100,默认为-1 - 不使用。如果JPEG_LIB_VERSION < 70,则不支持。

IMWRITE_JPEG_SAMPLING_FACTOR 
Python: cv.IMWRITE_JPEG_SAMPLING_FACTOR

对于JPEG,设置采样因子。请参阅cv::ImwriteJPEGSamplingFactorParams

IMWRITE_PNG_COMPRESSION 
Python: cv.IMWRITE_PNG_COMPRESSION

对于PNG,可以是0到9的压缩级别。值越高,表示大小越小,压缩时间越长。如果指定,则策略更改为IMWRITE_PNG_STRATEGY_DEFAULT (Z_DEFAULT_STRATEGY)。默认值为1(最佳速度设置)。

IMWRITE_PNG_STRATEGY 
Python: cv.IMWRITE_PNG_STRATEGY

cv::ImwritePNGFlags中的一项,默认为IMWRITE_PNG_STRATEGY_RLE。

IMWRITE_PNG_BILEVEL 
Python: cv.IMWRITE_PNG_BILEVEL

二值级PNG,0或1,默认为0。

IMWRITE_PXM_BINARY 
Python: cv.IMWRITE_PXM_BINARY

对于PPM、PGM或PBM,它可以是一个二进制格式标志,0或1。默认值为1。

IMWRITE_EXR_TYPE 
Python: cv.IMWRITE_EXR_TYPE

覆盖EXR存储类型(默认为FLOAT (FP32))

IMWRITE_EXR_COMPRESSION 
Python: cv.IMWRITE_EXR_COMPRESSION

覆盖EXR压缩类型(ZIP_COMPRESSION = 3是默认值)

IMWRITE_EXR_DWA_COMPRESSION_LEVEL 
Python: cv.IMWRITE_EXR_DWA_COMPRESSION_LEVEL

覆盖EXR DWA压缩级别(默认为45)

IMWRITE_WEBP_QUALITY 
Python: cv.IMWRITE_WEBP_QUALITY

对于WEBP,可以是1到100的质量(值越大越好)。默认情况下(没有任何参数)以及对于超过100的质量,使用无损压缩。

IMWRITE_HDR_COMPRESSION 
Python: cv.IMWRITE_HDR_COMPRESSION

指定HDR压缩

IMWRITE_PAM_TUPLETYPE 
Python: cv.IMWRITE_PAM_TUPLETYPE

对于PAM,将其TUPLETYPE字段设置为对应于该格式的定义的字符串值。

IMWRITE_TIFF_RESUNIT 
Python: cv.IMWRITE_TIFF_RESUNIT

对于TIFF,用于指定要设置的哪个DPI分辨率单位;请参阅libtiff文档以获取有效值。

IMWRITE_TIFF_XDPI 
Python: cv.IMWRITE_TIFF_XDPI

对于TIFF,用于指定X方向的DPI。

IMWRITE_TIFF_YDPI 
Python: cv.IMWRITE_TIFF_YDPI

对于TIFF图像,用于指定Y方向的DPI。

IMWRITE_TIFF_COMPRESSION
Python: cv.IMWRITE_TIFF_COMPRESSION

对于TIFF图像,用于指定图像压缩方案。参见cv::ImwriteTiffCompressionFlags。注意,对于深度为CV_32F的图像,仅支持libtiff的SGILog压缩方案。对于其他支持的深度,可以通过此标志指定压缩方案;默认为LZW压缩。

IMWRITE_TIFF_ROWSPERSTRIP
Python: cv.IMWRITE_TIFF_ROWSPERSTRIP

对于TIFF图像,用于指定每条带中的行数。

IMWRITE_TIFF_PREDICTOR
Python: cv.IMWRITE_TIFF_PREDICTOR

对于TIFF图像,用于指定预测器。参见cv::ImwriteTiffPredictorFlags

IMWRITE_JPEG2000_COMPRESSION_X1000
Python: cv.IMWRITE_JPEG2000_COMPRESSION_X1000

对于JPEG2000图像,用于指定目标压缩率(乘以1000)。值可以从0到1000。默认是1000。

IMWRITE_AVIF_QUALITY
Python: cv.IMWRITE_AVIF_QUALITY

对于AVIF图像,可以在0到100之间指定质量(值越大越好)。默认是95。

IMWRITE_AVIF_DEPTH
Python: cv.IMWRITE_AVIF_DEPTH

对于AVIF图像,可以是8、10或12。如果大于8,则以CV_32F格式存储/读取。默认是8。

IMWRITE_AVIF_SPEED
Python: cv.IMWRITE_AVIF_SPEED

对于AVIF图像,介于0(最慢)和(最快)之间。默认是9。

◆ ImwriteHDRCompressionFlags

#include <opencv2/imgcodecs.hpp>

IMWRITE_HDR_COMPRESSION参数键的特定HDR值。

枚举值
IMWRITE_HDR_COMPRESSION_NONE
Python: cv.IMWRITE_HDR_COMPRESSION_NONE
IMWRITE_HDR_COMPRESSION_RLE
Python: cv.IMWRITE_HDR_COMPRESSION_RLE

◆ ImwriteJPEGSamplingFactorParams

#include <opencv2/imgcodecs.hpp>

枚举值
IMWRITE_JPEG_SAMPLING_FACTOR_411
Python: cv.IMWRITE_JPEG_SAMPLING_FACTOR_411

4x1,1x1,1x1

IMWRITE_JPEG_SAMPLING_FACTOR_420
Python: cv.IMWRITE_JPEG_SAMPLING_FACTOR_420

2x2,1x1,1x1(默认)

IMWRITE_JPEG_SAMPLING_FACTOR_422
Python: cv.IMWRITE_JPEG_SAMPLING_FACTOR_422

2x1,1x1,1x1

IMWRITE_JPEG_SAMPLING_FACTOR_440
Python: cv.IMWRITE_JPEG_SAMPLING_FACTOR_440

1x2,1x1,1x1

IMWRITE_JPEG_SAMPLING_FACTOR_444
Python: cv.IMWRITE_JPEG_SAMPLING_FACTOR_444

1x1,1x1,1x1(无子采样)

◆ ImwritePAMFlags

#include <opencv2/imgcodecs.hpp>

Imwrite专门的PAM格式标识,用于定义PAM文件的'TUPLETYPE'字段。

枚举值
IMWRITE_PAM_FORMAT_NULL
Python: cv.IMWRITE_PAM_FORMAT_NULL
IMWRITE_PAM_FORMAT_BLACKANDWHITE
Python: cv.IMWRITE_PAM_FORMAT_BLACKANDWHITE
IMWRITE_PAM_FORMAT_GRAYSCALE 
Python: cv.IMWRITE_PAM_FORMAT_GRAYSCALE
IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA 
Python: cv.IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA
IMWRITE_PAM_FORMAT_RGB 
Python: cv.IMWRITE_PAM_FORMAT_RGB
IMWRITE_PAM_FORMAT_RGB_ALPHA 
Python: cv.IMWRITE_PAM_FORMAT_RGB_ALPHA

◆ ImwritePNGFlags

#include <opencv2/imgcodecs.hpp>

用于调整压缩算法的 Imwrite PNG 特定标志。

这些标志将修改 PNG 图像压缩方式,并将传递到底层的 zlib 处理阶段。

  • IMWRITE_PNG_STRATEGY_FILTERED 的效果是强制更多的 Huffman 编码和更少的字符串匹配;它在 IMWRITE_PNG_STRATEGY_DEFAULT 和 IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY 之间。
  • IMWRITE_PNG_STRATEGY_RLE 设计成几乎与 IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY 一样快,但提供更好的 PNG 图像数据压缩。
  • 策略参数只影响压缩比,但不影响压缩输出的正确性,即使未正确设置。
  • IMWRITE_PNG_STRATEGY_FIXED 禁止使用动态 Huffman 代码,允许在特殊应用中使用更简单的解码器。
枚举值
IMWRITE_PNG_STRATEGY_DEFAULT 
Python: cv.IMWRITE_PNG_STRATEGY_DEFAULT

对于正常数据使用此值。

IMWRITE_PNG_STRATEGY_FILTERED 
Python: cv.IMWRITE_PNG_STRATEGY_FILTERED

对于由过滤器(或预测器)生成的数据使用此值。经过过滤的数据主要由小值组成,分布相对随机。在这种情况下,压缩算法调整为更好地压缩它们。

IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY 
Python: cv.IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY

使用此值强制只进行 Huffman 编码(无字符串匹配)。

IMWRITE_PNG_STRATEGY_RLE 
Python: cv.IMWRITE_PNG_STRATEGY_RLE

使用此值限制匹配距离为一(长度编码)。

IMWRITE_PNG_STRATEGY_FIXED 
Python: cv.IMWRITE_PNG_STRATEGY_FIXED

使用此值防止使用动态 Huffman 代码,允许为特殊应用提供更简单的解码器。

◆ ImwriteTiffCompressionFlags

#include <opencv2/imgcodecs.hpp>

枚举值
IMWRITE_TIFF_COMPRESSION_NONE 
Python: cv.IMWRITE_TIFF_COMPRESSION_NONE

转储模式

IMWRITE_TIFF_COMPRESSION_CCITTRLE 
Python: cv.IMWRITE_TIFF_COMPRESSION_CCITTRLE

CCITT 修改后的 Huffman RLE。

IMWRITE_TIFF_COMPRESSION_CCITTFAX3 
Python: cv.IMWRITE_TIFF_COMPRESSION_CCITTFAX3

CCITT Group 3 传真的编码。

IMWRITE_TIFF_COMPRESSION_CCITT_T4 
Python: cv.IMWRITE_TIFF_COMPRESSION_CCITT_T4

CCITT T.4(TIFF 6 命名)

IMWRITE_TIFF_COMPRESSION_CCITTFAX4 
Python: cv.IMWRITE_TIFF_COMPRESSION_CCITTFAX4

CCITT第4组传真编码。

IMWRITE_TIFF_COMPRESSION_CCITT_T6 
Python: cv.IMWRITE_TIFF_COMPRESSION_CCITT_T6

CCITT T.6 (TIFF 6名称)

IMWRITE_TIFF_COMPRESSION_LZW 
Python: cv.IMWRITE_TIFF_COMPRESSION_LZW

Lempel-Ziv & Welch。

IMWRITE_TIFF_COMPRESSION_OJPEG 
Python: cv.IMWRITE_TIFF_COMPRESSION_OJPEG

!6.0 JPEG

IMWRITE_TIFF_COMPRESSION_JPEG 
Python: cv.IMWRITE_TIFF_COMPRESSION_JPEG

JPEG DCT压缩

IMWRITE_TIFF_COMPRESSION_T85 
Python: cv.IMWRITE_TIFF_COMPRESSION_T85

!TIFF/FX T.85 JBIG压缩

IMWRITE_TIFF_COMPRESSION_T43 
Python: cv.IMWRITE_TIFF_COMPRESSION_T43

!TIFF/FX T.43分层JBIG压缩

IMWRITE_TIFF_COMPRESSION_NEXT 
Python: cv.IMWRITE_TIFF_COMPRESSION_NEXT

NeXT 2位RLE。

IMWRITE_TIFF_COMPRESSION_CCITTRLEW 
Python: cv.IMWRITE_TIFF_COMPRESSION_CCITTRLEW

#1与字对齐

IMWRITE_TIFF_COMPRESSION_PACKBITS 
Python: cv.IMWRITE_TIFF_COMPRESSION_PACKBITS

Macintosh RLE。

IMWRITE_TIFF_COMPRESSION_THUNDERSCAN 
Python: cv.IMWRITE_TIFF_COMPRESSION_THUNDERSCAN

ThunderScan RLE。

IMWRITE_TIFF_COMPRESSION_IT8CTPAD 
Python: cv.IMWRITE_TIFF_COMPRESSION_IT8CTPAD

IT8 CT带填充。

IMWRITE_TIFF_COMPRESSION_IT8LW 
Python: cv.IMWRITE_TIFF_COMPRESSION_IT8LW

IT8线画RLE。

IMWRITE_TIFF_COMPRESSION_IT8MP 
Python: cv.IMWRITE_TIFF_COMPRESSION_IT8MP

IT8单色图像。

IMWRITE_TIFF_COMPRESSION_IT8BL 
Python: cv.IMWRITE_TIFF_COMPRESSION_IT8BL

IT8二值线艺术。

IMWRITE_TIFF_COMPRESSION_PIXARFILM 
Python: cv.IMWRITE_TIFF_COMPRESSION_PIXARFILM

Pixar压缩10位LZW。

IMWRITE_TIFF_COMPRESSION_PIXARLOG 
Python: cv.IMWRITE_TIFF_COMPRESSION_PIXARLOG

Pixar压缩11位ZIP。

IMWRITE_TIFF_COMPRESSION_DEFLATE 
Python: cv.IMWRITE_TIFF_COMPRESSION_DEFLATE

Deflate压缩,过时标记。

IMWRITE_TIFF_COMPRESSION_ADOBE_DEFLATE 
Python: cv.IMWRITE_TIFF_COMPRESSION_ADOBE_DEFLATE

Deflate压缩,Adobe认可。

IMWRITE_TIFF_COMPRESSION_DCS 
Python: cv.IMWRITE_TIFF_COMPRESSION_DCS

Kodak DCS编码。

IMWRITE_TIFF_COMPRESSION_JBIG 
Python: cv.IMWRITE_TIFF_COMPRESSION_JBIG

ISO JBIG。

IMWRITE_TIFF_COMPRESSION_SGILOG 
Python: cv.IMWRITE_TIFF_COMPRESSION_SGILOG

SGI Log Luminance RLE。

IMWRITE_TIFF_COMPRESSION_SGILOG24 
Python: cv.IMWRITE_TIFF_COMPRESSION_SGILOG24

SGI Log 24-bit packed。

IMWRITE_TIFF_COMPRESSION_JP2000 
Python: cv.IMWRITE_TIFF_COMPRESSION_JP2000

Leadtools JPEG2000。

IMWRITE_TIFF_COMPRESSION_LERC 
Python: cv.IMWRITE_TIFF_COMPRESSION_LERC

ESRI Lerc 编码器: https://github.com/Esri/lerc

IMWRITE_TIFF_COMPRESSION_LZMA 
Python: cv.IMWRITE_TIFF_COMPRESSION_LZMA

LZMA2。

IMWRITE_TIFF_COMPRESSION_ZSTD 
Python: cv.IMWRITE_TIFF_COMPRESSION_ZSTD

ZSTD: 注意,未在 Adobe 维护的注册表中注册。

IMWRITE_TIFF_COMPRESSION_WEBP 
Python: cv.IMWRITE_TIFF_COMPRESSION_WEBP

WEBP: 注意,未在 Adobe 维护的注册表中注册。

IMWRITE_TIFF_COMPRESSION_JXL 
Python: cv.IMWRITE_TIFF_COMPRESSION_JXL

JPEGXL: 注意,未在 Adobe 维护的注册表中注册。

◆ ImwriteTiffPredictorFlags

#include <opencv2/imgcodecs.hpp>

枚举值
IMWRITE_TIFF_PREDICTOR_NONE 
Python: cv.IMWRITE_TIFF_PREDICTOR_NONE

未使用预测方案

IMWRITE_TIFF_PREDICTOR_HORIZONTAL 
Python: cv.IMWRITE_TIFF_PREDICTOR_HORIZONTAL

水平差分

IMWRITE_TIFF_PREDICTOR_FLOATINGPOINT 
Python: cv.IMWRITE_TIFF_PREDICTOR_FLOATINGPOINT

浮点预测器