| ImwriteFlags Enumeration |
The format type IDs for cv::imwrite and cv::inencode
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax Public Enumeration ImwriteFlags
public enum class ImwriteFlags
Members
| Member name | Value | Description |
---|
| JpegQuality | 1 |
For JPEG, it can be a quality from 0 to 100 (the higher is the better). Default value is 95.
|
| JpegProgressive | 2 |
Enable JPEG features, 0 or 1, default is False.
|
| JpegOptimize | 3 |
Enable JPEG features, 0 or 1, default is False.
|
| JpegRstInterval | 4 |
JPEG restart interval, 0 - 65535, default is 0 - no restart.
|
| JpegLumaQuality | 5 |
Separate luma quality level, 0 - 100, default is 0 - don't use.
|
| JpegChromaQuality | 6 |
Separate chroma quality level, 0 - 100, default is 0 - don't use.
|
| PngCompression | 16 |
For PNG, it can be the compression level from 0 to 9.
A higher value means a smaller size and longer compression time. Default value is 3.
|
| PngStrategy | 17 |
One of cv::ImwritePNGFlags, default is IMWRITE_PNG_StrategyDEFAULT.
|
| PngBilevel | 18 |
Binary level PNG, 0 or 1, default is 0.
|
| PxmBinary | 32 |
For PPM, PGM, or PBM, it can be a binary format flag, 0 or 1. Default value is 1.
|
| ExrType | 48 |
[48] override EXR storage type (FLOAT (FP32) is default)
|
| WebPQuality | 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.
|
| PamTupleType | 128 |
For PAM, sets the TUPLETYPE field to the corresponding string value that is defined for the format
|
| TiffResUnit | 256 |
For TIFF, use to specify which DPI resolution unit to set; see libtiff documentation for valid values
|
| TiffXDpi | 257 |
For TIFF, use to specify the X direction DPI
|
| TiffYDpi | 258 |
For TIFF, use to specify the Y direction DPI
|
See Also