OpenCV for Unity  2.6.2
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Static Public Member Functions | Public Attributes | List of all members
OpenCVForUnity.ImgcodecsModule.Imgcodecs Class Reference

Static Public Member Functions

static Mat imread (string filename, int flags)
 Loads an image from a file. More...
 
static Mat imread (string filename)
 Loads an image from a file. More...
 
static void imread (string filename, Mat dst, int flags)
 Loads an image from a file. More...
 
static void imread (string filename, Mat dst)
 Loads an image from a file. More...
 
static bool imreadmulti (string filename, List< Mat > mats, int flags)
 Loads a multi-page image from a file. More...
 
static bool imreadmulti (string filename, List< Mat > mats)
 Loads a multi-page image from a file. More...
 
static bool imreadmulti (string filename, List< Mat > mats, int start, int count, int flags)
 Loads a of images of a multi-page image from a file. More...
 
static bool imreadmulti (string filename, List< Mat > mats, int start, int count)
 Loads a of images of a multi-page image from a file. More...
 
static long imcount (string filename, int flags)
 Returns the number of images inside the give file. More...
 
static long imcount (string filename)
 Returns the number of images inside the give file. More...
 
static bool imwrite (string filename, Mat img, MatOfInt _params)
 Saves an image to a specified file. More...
 
static bool imwrite (string filename, Mat img)
 Saves an image to a specified file. More...
 
static bool imwritemulti (string filename, List< Mat > img, MatOfInt _params)
 
static bool imwritemulti (string filename, List< Mat > img)
 
static Mat imdecode (Mat buf, int flags)
 Reads an image from a buffer in memory. More...
 
static bool imdecodemulti (Mat buf, int flags, List< Mat > mats, Range range)
 Reads a multi-page image from a buffer in memory. More...
 
static bool imdecodemulti (Mat buf, int flags, List< Mat > mats)
 Reads a multi-page image from a buffer in memory. More...
 
static bool imencode (string ext, Mat img, MatOfByte buf, MatOfInt _params)
 Encodes an image into a memory buffer. More...
 
static bool imencode (string ext, Mat img, MatOfByte buf)
 Encodes an image into a memory buffer. More...
 
static bool haveImageReader (string filename)
 Returns true if the specified image can be decoded by OpenCV. More...
 
static bool haveImageWriter (string filename)
 Returns true if an image with the specified filename can be encoded by OpenCV. More...
 

Public Attributes

const int IMREAD_UNCHANGED = -1
 
const int IMREAD_GRAYSCALE = 0
 
const int IMREAD_COLOR = 1
 
const int IMREAD_ANYDEPTH = 2
 
const int IMREAD_ANYCOLOR = 4
 
const int IMREAD_LOAD_GDAL = 8
 
const int IMREAD_REDUCED_GRAYSCALE_2 = 16
 
const int IMREAD_REDUCED_COLOR_2 = 17
 
const int IMREAD_REDUCED_GRAYSCALE_4 = 32
 
const int IMREAD_REDUCED_COLOR_4 = 33
 
const int IMREAD_REDUCED_GRAYSCALE_8 = 64
 
const int IMREAD_REDUCED_COLOR_8 = 65
 
const int IMREAD_IGNORE_ORIENTATION = 128
 
const int IMWRITE_EXR_COMPRESSION_NO = 0
 
const int IMWRITE_EXR_COMPRESSION_RLE = 1
 
const int IMWRITE_EXR_COMPRESSION_ZIPS = 2
 
const int IMWRITE_EXR_COMPRESSION_ZIP = 3
 
const int IMWRITE_EXR_COMPRESSION_PIZ = 4
 
const int IMWRITE_EXR_COMPRESSION_PXR24 = 5
 
const int IMWRITE_EXR_COMPRESSION_B44 = 6
 
const int IMWRITE_EXR_COMPRESSION_B44A = 7
 
const int IMWRITE_EXR_COMPRESSION_DWAA = 8
 
const int IMWRITE_EXR_COMPRESSION_DWAB = 9
 
const int IMWRITE_EXR_TYPE_HALF = 1
 
const int IMWRITE_EXR_TYPE_FLOAT = 2
 
const int IMWRITE_JPEG_QUALITY = 1
 
const int IMWRITE_JPEG_PROGRESSIVE = 2
 
const int IMWRITE_JPEG_OPTIMIZE = 3
 
const int IMWRITE_JPEG_RST_INTERVAL = 4
 
const int IMWRITE_JPEG_LUMA_QUALITY = 5
 
const int IMWRITE_JPEG_CHROMA_QUALITY = 6
 
const int IMWRITE_JPEG_SAMPLING_FACTOR = 7
 
const int IMWRITE_PNG_COMPRESSION = 16
 
const int IMWRITE_PNG_STRATEGY = 17
 
const int IMWRITE_PNG_BILEVEL = 18
 
const int IMWRITE_PXM_BINARY = 32
 
const int IMWRITE_EXR_TYPE = (3 << 4) + 0
 
const int IMWRITE_EXR_COMPRESSION = (3 << 4) + 1
 
const int IMWRITE_EXR_DWA_COMPRESSION_LEVEL = (3 << 4) + 2
 
const int IMWRITE_WEBP_QUALITY = 64
 
const int IMWRITE_HDR_COMPRESSION = (5 << 4) + 0
 
const int IMWRITE_PAM_TUPLETYPE = 128
 
const int IMWRITE_TIFF_RESUNIT = 256
 
const int IMWRITE_TIFF_XDPI = 257
 
const int IMWRITE_TIFF_YDPI = 258
 
const int IMWRITE_TIFF_COMPRESSION = 259
 
const int IMWRITE_TIFF_ROWSPERSTRIP = 278
 
const int IMWRITE_TIFF_PREDICTOR = 317
 
const int IMWRITE_JPEG2000_COMPRESSION_X1000 = 272
 
const int IMWRITE_AVIF_QUALITY = 512
 
const int IMWRITE_AVIF_DEPTH = 513
 
const int IMWRITE_AVIF_SPEED = 514
 
const int IMWRITE_HDR_COMPRESSION_NONE = 0
 
const int IMWRITE_HDR_COMPRESSION_RLE = 1
 
const int IMWRITE_JPEG_SAMPLING_FACTOR_411 = 0x411111
 
const int IMWRITE_JPEG_SAMPLING_FACTOR_420 = 0x221111
 
const int IMWRITE_JPEG_SAMPLING_FACTOR_422 = 0x211111
 
const int IMWRITE_JPEG_SAMPLING_FACTOR_440 = 0x121111
 
const int IMWRITE_JPEG_SAMPLING_FACTOR_444 = 0x111111
 
const int IMWRITE_PAM_FORMAT_NULL = 0
 
const int IMWRITE_PAM_FORMAT_BLACKANDWHITE = 1
 
const int IMWRITE_PAM_FORMAT_GRAYSCALE = 2
 
const int IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA = 3
 
const int IMWRITE_PAM_FORMAT_RGB = 4
 
const int IMWRITE_PAM_FORMAT_RGB_ALPHA = 5
 
const int IMWRITE_PNG_STRATEGY_DEFAULT = 0
 
const int IMWRITE_PNG_STRATEGY_FILTERED = 1
 
const int IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY = 2
 
const int IMWRITE_PNG_STRATEGY_RLE = 3
 
const int IMWRITE_PNG_STRATEGY_FIXED = 4
 
const int IMWRITE_TIFF_COMPRESSION_NONE = 1
 
const int IMWRITE_TIFF_COMPRESSION_CCITTRLE = 2
 
const int IMWRITE_TIFF_COMPRESSION_CCITTFAX3 = 3
 
const int IMWRITE_TIFF_COMPRESSION_CCITT_T4 = 3
 
const int IMWRITE_TIFF_COMPRESSION_CCITTFAX4 = 4
 
const int IMWRITE_TIFF_COMPRESSION_CCITT_T6 = 4
 
const int IMWRITE_TIFF_COMPRESSION_LZW = 5
 
const int IMWRITE_TIFF_COMPRESSION_OJPEG = 6
 
const int IMWRITE_TIFF_COMPRESSION_JPEG = 7
 
const int IMWRITE_TIFF_COMPRESSION_T85 = 9
 
const int IMWRITE_TIFF_COMPRESSION_T43 = 10
 
const int IMWRITE_TIFF_COMPRESSION_NEXT = 32766
 
const int IMWRITE_TIFF_COMPRESSION_CCITTRLEW = 32771
 
const int IMWRITE_TIFF_COMPRESSION_PACKBITS = 32773
 
const int IMWRITE_TIFF_COMPRESSION_THUNDERSCAN = 32809
 
const int IMWRITE_TIFF_COMPRESSION_IT8CTPAD = 32895
 
const int IMWRITE_TIFF_COMPRESSION_IT8LW = 32896
 
const int IMWRITE_TIFF_COMPRESSION_IT8MP = 32897
 
const int IMWRITE_TIFF_COMPRESSION_IT8BL = 32898
 
const int IMWRITE_TIFF_COMPRESSION_PIXARFILM = 32908
 
const int IMWRITE_TIFF_COMPRESSION_PIXARLOG = 32909
 
const int IMWRITE_TIFF_COMPRESSION_DEFLATE = 32946
 
const int IMWRITE_TIFF_COMPRESSION_ADOBE_DEFLATE = 8
 
const int IMWRITE_TIFF_COMPRESSION_DCS = 32947
 
const int IMWRITE_TIFF_COMPRESSION_JBIG = 34661
 
const int IMWRITE_TIFF_COMPRESSION_SGILOG = 34676
 
const int IMWRITE_TIFF_COMPRESSION_SGILOG24 = 34677
 
const int IMWRITE_TIFF_COMPRESSION_JP2000 = 34712
 
const int IMWRITE_TIFF_COMPRESSION_LERC = 34887
 
const int IMWRITE_TIFF_COMPRESSION_LZMA = 34925
 
const int IMWRITE_TIFF_COMPRESSION_ZSTD = 50000
 
const int IMWRITE_TIFF_COMPRESSION_WEBP = 50001
 
const int IMWRITE_TIFF_COMPRESSION_JXL = 50002
 
const int IMWRITE_TIFF_PREDICTOR_NONE = 1
 
const int IMWRITE_TIFF_PREDICTOR_HORIZONTAL = 2
 
const int IMWRITE_TIFF_PREDICTOR_FLOATINGPOINT = 3
 

Member Function Documentation

◆ haveImageReader()

static bool OpenCVForUnity.ImgcodecsModule.Imgcodecs.haveImageReader ( string  filename)
static

Returns true if the specified image can be decoded by OpenCV.

Parameters
filenameFile name of the image

◆ haveImageWriter()

static bool OpenCVForUnity.ImgcodecsModule.Imgcodecs.haveImageWriter ( string  filename)
static

Returns true if an image with the specified filename can be encoded by OpenCV.

Parameters
filenameFile name of the image

◆ imcount() [1/2]

static long OpenCVForUnity.ImgcodecsModule.Imgcodecs.imcount ( string  filename,
int  flags 
)
static

Returns the number of images inside the give file.

The function imcount will return the number of pages in a multi-page image, or 1 for single-page images

Parameters
filenameName of file to be loaded.
flagsFlag that can take values of cv::ImreadModes, default with cv::IMREAD_ANYCOLOR.

◆ imcount() [2/2]

static long OpenCVForUnity.ImgcodecsModule.Imgcodecs.imcount ( string  filename)
static

Returns the number of images inside the give file.

The function imcount will return the number of pages in a multi-page image, or 1 for single-page images

Parameters
filenameName of file to be loaded.
flagsFlag that can take values of cv::ImreadModes, default with cv::IMREAD_ANYCOLOR.

◆ imdecode()

static Mat OpenCVForUnity.ImgcodecsModule.Imgcodecs.imdecode ( Mat  buf,
int  flags 
)
static

Reads an image from a buffer in memory.

The function imdecode reads an image from the specified buffer in the memory. If the buffer is too short or contains invalid data, the function returns an empty matrix ( Mat::data==NULL ).

See cv::imread for the list of supported formats and flags description.

Note
In the case of color images, the decoded images will have the channels stored in B G R order.
Parameters
bufInput array or vector of bytes.
flagsThe same flags as in cv::imread, see cv::ImreadModes.

◆ imdecodemulti() [1/2]

static bool OpenCVForUnity.ImgcodecsModule.Imgcodecs.imdecodemulti ( Mat  buf,
int  flags,
List< Mat mats,
Range  range 
)
static

Reads a multi-page image from a buffer in memory.

The function imdecodemulti reads a multi-page image from the specified buffer in the memory. If the buffer is too short or contains invalid data, the function returns false.

See cv::imreadmulti for the list of supported formats and flags description.

Note
In the case of color images, the decoded images will have the channels stored in B G R order.
Parameters
bufInput array or vector of bytes.
flagsThe same flags as in cv::imread, see cv::ImreadModes.
matsA vector of Mat objects holding each page, if more than one.
rangeA continuous selection of pages.

◆ imdecodemulti() [2/2]

static bool OpenCVForUnity.ImgcodecsModule.Imgcodecs.imdecodemulti ( Mat  buf,
int  flags,
List< Mat mats 
)
static

Reads a multi-page image from a buffer in memory.

The function imdecodemulti reads a multi-page image from the specified buffer in the memory. If the buffer is too short or contains invalid data, the function returns false.

See cv::imreadmulti for the list of supported formats and flags description.

Note
In the case of color images, the decoded images will have the channels stored in B G R order.
Parameters
bufInput array or vector of bytes.
flagsThe same flags as in cv::imread, see cv::ImreadModes.
matsA vector of Mat objects holding each page, if more than one.
rangeA continuous selection of pages.

◆ imencode() [1/2]

static bool OpenCVForUnity.ImgcodecsModule.Imgcodecs.imencode ( string  ext,
Mat  img,
MatOfByte  buf,
MatOfInt  _params 
)
static

Encodes an image into a memory buffer.

The function imencode compresses the image and stores it in the memory buffer that is resized to fit the result. See cv::imwrite for the list of supported formats and flags description.

Parameters
extFile extension that defines the output format. Must include a leading period.
imgImage to be written.
bufOutput buffer resized to fit the compressed image.
paramsFormat-specific parameters. See cv::imwrite and cv::ImwriteFlags.

◆ imencode() [2/2]

static bool OpenCVForUnity.ImgcodecsModule.Imgcodecs.imencode ( string  ext,
Mat  img,
MatOfByte  buf 
)
static

Encodes an image into a memory buffer.

The function imencode compresses the image and stores it in the memory buffer that is resized to fit the result. See cv::imwrite for the list of supported formats and flags description.

Parameters
extFile extension that defines the output format. Must include a leading period.
imgImage to be written.
bufOutput buffer resized to fit the compressed image.
paramsFormat-specific parameters. See cv::imwrite and cv::ImwriteFlags.

◆ imread() [1/4]

static Mat OpenCVForUnity.ImgcodecsModule.Imgcodecs.imread ( string  filename,
int  flags 
)
static

Loads an image from a file.

The function imread loads an image from the specified file and returns it. If the image cannot be read (because of missing file, improper permissions, unsupported or invalid format), the function returns an empty matrix ( Mat::data==NULL ).

Currently, the following file formats are supported:

  • Windows bitmaps - *.bmp, *.dib (always supported)
  • JPEG files - *.jpeg, *.jpg, *.jpe (see the Note section)
  • JPEG 2000 files - *.jp2 (see the Note section)
  • Portable Network Graphics - *.png (see the Note section)
  • WebP - *.webp (see the Note section)
  • AVIF - *.avif (see the Note section)
  • Portable image format - *.pbm, *.pgm, *.ppm *.pxm, *.pnm (always supported)
  • PFM files - *.pfm (see the Note section)
  • Sun rasters - *.sr, *.ras (always supported)
  • TIFF files - *.tiff, *.tif (see the Note section)
  • OpenEXR Image files - *.exr (see the Note section)
  • Radiance HDR - *.hdr, *.pic (always supported)
  • Raster and Vector geospatial data supported by GDAL (see the Note section)
Note
  • The function determines the type of an image by the content, not by the file extension.
  • In the case of color images, the decoded images will have the channels stored in B G R order.
  • When using IMREAD_GRAYSCALE, the codec's internal grayscale conversion will be used, if available. Results may differ to the output of cvtColor()
  • On Microsoft Windows* OS and MacOSX*, the codecs shipped with an OpenCV image (libjpeg, libpng, libtiff, and libjasper) are used by default. So, OpenCV can always read JPEGs, PNGs, and TIFFs. On MacOSX, there is also an option to use native MacOSX image readers. But beware that currently these native image loaders give images with different pixel values because of the color management embedded into MacOSX.
  • On Linux*, BSD flavors and other Unix-like open-source operating systems, OpenCV looks for codecs supplied with an OS image. Install the relevant packages (do not forget the development files, for example, "libjpeg-dev", in Debian* and Ubuntu*) to get the codec support or turn on the OPENCV_BUILD_3RDPARTY_LIBS flag in CMake.
  • In the case you set WITH_GDAL flag to true in CMake and IMREAD_LOAD_GDAL to load the image, then the GDAL driver will be used in order to decode the image, supporting the following formats: Raster, Vector.
  • If EXIF information is embedded in the image file, the EXIF orientation will be taken into account and thus the image will be rotated accordingly except if the flags IMREAD_IGNORE_ORIENTATION or IMREAD_UNCHANGED are passed.
  • Use the IMREAD_UNCHANGED flag to keep the floating point values from PFM image.
  • By default number of pixels must be less than 2^30. Limit can be set using system variable OPENCV_IO_MAX_IMAGE_PIXELS
Parameters
filenameName of file to be loaded.
flagsFlag that can take values of cv::ImreadModes

◆ imread() [2/4]

static Mat OpenCVForUnity.ImgcodecsModule.Imgcodecs.imread ( string  filename)
static

Loads an image from a file.

The function imread loads an image from the specified file and returns it. If the image cannot be read (because of missing file, improper permissions, unsupported or invalid format), the function returns an empty matrix ( Mat::data==NULL ).

Currently, the following file formats are supported:

  • Windows bitmaps - *.bmp, *.dib (always supported)
  • JPEG files - *.jpeg, *.jpg, *.jpe (see the Note section)
  • JPEG 2000 files - *.jp2 (see the Note section)
  • Portable Network Graphics - *.png (see the Note section)
  • WebP - *.webp (see the Note section)
  • AVIF - *.avif (see the Note section)
  • Portable image format - *.pbm, *.pgm, *.ppm *.pxm, *.pnm (always supported)
  • PFM files - *.pfm (see the Note section)
  • Sun rasters - *.sr, *.ras (always supported)
  • TIFF files - *.tiff, *.tif (see the Note section)
  • OpenEXR Image files - *.exr (see the Note section)
  • Radiance HDR - *.hdr, *.pic (always supported)
  • Raster and Vector geospatial data supported by GDAL (see the Note section)
Note
  • The function determines the type of an image by the content, not by the file extension.
  • In the case of color images, the decoded images will have the channels stored in B G R order.
  • When using IMREAD_GRAYSCALE, the codec's internal grayscale conversion will be used, if available. Results may differ to the output of cvtColor()
  • On Microsoft Windows* OS and MacOSX*, the codecs shipped with an OpenCV image (libjpeg, libpng, libtiff, and libjasper) are used by default. So, OpenCV can always read JPEGs, PNGs, and TIFFs. On MacOSX, there is also an option to use native MacOSX image readers. But beware that currently these native image loaders give images with different pixel values because of the color management embedded into MacOSX.
  • On Linux*, BSD flavors and other Unix-like open-source operating systems, OpenCV looks for codecs supplied with an OS image. Install the relevant packages (do not forget the development files, for example, "libjpeg-dev", in Debian* and Ubuntu*) to get the codec support or turn on the OPENCV_BUILD_3RDPARTY_LIBS flag in CMake.
  • In the case you set WITH_GDAL flag to true in CMake and IMREAD_LOAD_GDAL to load the image, then the GDAL driver will be used in order to decode the image, supporting the following formats: Raster, Vector.
  • If EXIF information is embedded in the image file, the EXIF orientation will be taken into account and thus the image will be rotated accordingly except if the flags IMREAD_IGNORE_ORIENTATION or IMREAD_UNCHANGED are passed.
  • Use the IMREAD_UNCHANGED flag to keep the floating point values from PFM image.
  • By default number of pixels must be less than 2^30. Limit can be set using system variable OPENCV_IO_MAX_IMAGE_PIXELS
Parameters
filenameName of file to be loaded.
flagsFlag that can take values of cv::ImreadModes

◆ imread() [3/4]

static void OpenCVForUnity.ImgcodecsModule.Imgcodecs.imread ( string  filename,
Mat  dst,
int  flags 
)
static

Loads an image from a file.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts and the return value.

Parameters
filenameName of file to be loaded.
dstobject in which the image will be loaded.
flagsFlag that can take values of cv::ImreadModes
Note
The image passing through the img parameter can be pre-allocated. The memory is reused if the shape and the type match with the load image.

◆ imread() [4/4]

static void OpenCVForUnity.ImgcodecsModule.Imgcodecs.imread ( string  filename,
Mat  dst 
)
static

Loads an image from a file.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts and the return value.

Parameters
filenameName of file to be loaded.
dstobject in which the image will be loaded.
flagsFlag that can take values of cv::ImreadModes
Note
The image passing through the img parameter can be pre-allocated. The memory is reused if the shape and the type match with the load image.

◆ imreadmulti() [1/4]

static bool OpenCVForUnity.ImgcodecsModule.Imgcodecs.imreadmulti ( string  filename,
List< Mat mats,
int  flags 
)
static

Loads a multi-page image from a file.

The function imreadmulti loads a multi-page image from the specified file into a vector of Mat objects.

Parameters
filenameName of file to be loaded.
matsA vector of Mat objects holding each page.
flagsFlag that can take values of cv::ImreadModes, default with cv::IMREAD_ANYCOLOR.
See also
cv::imread

◆ imreadmulti() [2/4]

static bool OpenCVForUnity.ImgcodecsModule.Imgcodecs.imreadmulti ( string  filename,
List< Mat mats 
)
static

Loads a multi-page image from a file.

The function imreadmulti loads a multi-page image from the specified file into a vector of Mat objects.

Parameters
filenameName of file to be loaded.
matsA vector of Mat objects holding each page.
flagsFlag that can take values of cv::ImreadModes, default with cv::IMREAD_ANYCOLOR.
See also
cv::imread

◆ imreadmulti() [3/4]

static bool OpenCVForUnity.ImgcodecsModule.Imgcodecs.imreadmulti ( string  filename,
List< Mat mats,
int  start,
int  count,
int  flags 
)
static

Loads a of images of a multi-page image from a file.

The function imreadmulti loads a specified range from a multi-page image from the specified file into a vector of Mat objects.

Parameters
filenameName of file to be loaded.
matsA vector of Mat objects holding each page.
startStart index of the image to load
countCount number of images to load
flagsFlag that can take values of cv::ImreadModes, default with cv::IMREAD_ANYCOLOR.
See also
cv::imread

◆ imreadmulti() [4/4]

static bool OpenCVForUnity.ImgcodecsModule.Imgcodecs.imreadmulti ( string  filename,
List< Mat mats,
int  start,
int  count 
)
static

Loads a of images of a multi-page image from a file.

The function imreadmulti loads a specified range from a multi-page image from the specified file into a vector of Mat objects.

Parameters
filenameName of file to be loaded.
matsA vector of Mat objects holding each page.
startStart index of the image to load
countCount number of images to load
flagsFlag that can take values of cv::ImreadModes, default with cv::IMREAD_ANYCOLOR.
See also
cv::imread

◆ imwrite() [1/2]

static bool OpenCVForUnity.ImgcodecsModule.Imgcodecs.imwrite ( string  filename,
Mat  img,
MatOfInt  _params 
)
static

Saves an image to a specified file.

The function imwrite saves the image to the specified file. The image format is chosen based on the filename extension (see cv::imread for the list of extensions). In general, only 8-bit unsigned (CV_8U) single-channel or 3-channel (with 'BGR' channel order) images can be saved using this function, with these exceptions:

  • With OpenEXR encoder, only 32-bit float (CV_32F) images can be saved.
    • 8-bit unsigned (CV_8U) images are not supported.
  • With Radiance HDR encoder, non 64-bit float (CV_64F) images can be saved.
    • All images will be converted to 32-bit float (CV_32F).
  • With JPEG 2000 encoder, 8-bit unsigned (CV_8U) and 16-bit unsigned (CV_16U) images can be saved.
  • With PAM encoder, 8-bit unsigned (CV_8U) and 16-bit unsigned (CV_16U) images can be saved.
  • With PNG encoder, 8-bit unsigned (CV_8U) and 16-bit unsigned (CV_16U) images can be saved.
    • PNG images with an alpha channel can be saved using this function. To do this, create 8-bit (or 16-bit) 4-channel image BGRA, where the alpha channel goes last. Fully transparent pixels should have alpha set to 0, fully opaque pixels should have alpha set to 255/65535 (see the code sample below).
  • With PGM/PPM encoder, 8-bit unsigned (CV_8U) and 16-bit unsigned (CV_16U) images can be saved.
  • With TIFF encoder, 8-bit unsigned (CV_8U), 16-bit unsigned (CV_16U), 32-bit float (CV_32F) and 64-bit float (CV_64F) images can be saved.
    • Multiple images (vector of Mat) can be saved in TIFF format (see the code sample below).
    • 32-bit float 3-channel (CV_32FC3) TIFF images will be saved using the LogLuv high dynamic range encoding (4 bytes per pixel)

If the image format is not supported, the image will be converted to 8-bit unsigned (CV_8U) and saved that way.

If the format, depth or channel order is different, use Mat::convertTo and cv::cvtColor to convert it before saving. Or, use the universal FileStorage I/O functions to save the image to XML or YAML format.

The sample below shows how to create a BGRA image, how to set custom compression parameters and save it to a PNG file. It also demonstrates how to save multiple images in a TIFF file:

Parameters
filenameName of the file.
img(Mat or vector of Mat) Image or Images to be saved.
paramsFormat-specific parameters encoded as pairs (paramId_1, paramValue_1, paramId_2, paramValue_2, ... .) see cv::ImwriteFlags

◆ imwrite() [2/2]

static bool OpenCVForUnity.ImgcodecsModule.Imgcodecs.imwrite ( string  filename,
Mat  img 
)
static

Saves an image to a specified file.

The function imwrite saves the image to the specified file. The image format is chosen based on the filename extension (see cv::imread for the list of extensions). In general, only 8-bit unsigned (CV_8U) single-channel or 3-channel (with 'BGR' channel order) images can be saved using this function, with these exceptions:

  • With OpenEXR encoder, only 32-bit float (CV_32F) images can be saved.
    • 8-bit unsigned (CV_8U) images are not supported.
  • With Radiance HDR encoder, non 64-bit float (CV_64F) images can be saved.
    • All images will be converted to 32-bit float (CV_32F).
  • With JPEG 2000 encoder, 8-bit unsigned (CV_8U) and 16-bit unsigned (CV_16U) images can be saved.
  • With PAM encoder, 8-bit unsigned (CV_8U) and 16-bit unsigned (CV_16U) images can be saved.
  • With PNG encoder, 8-bit unsigned (CV_8U) and 16-bit unsigned (CV_16U) images can be saved.
    • PNG images with an alpha channel can be saved using this function. To do this, create 8-bit (or 16-bit) 4-channel image BGRA, where the alpha channel goes last. Fully transparent pixels should have alpha set to 0, fully opaque pixels should have alpha set to 255/65535 (see the code sample below).
  • With PGM/PPM encoder, 8-bit unsigned (CV_8U) and 16-bit unsigned (CV_16U) images can be saved.
  • With TIFF encoder, 8-bit unsigned (CV_8U), 16-bit unsigned (CV_16U), 32-bit float (CV_32F) and 64-bit float (CV_64F) images can be saved.
    • Multiple images (vector of Mat) can be saved in TIFF format (see the code sample below).
    • 32-bit float 3-channel (CV_32FC3) TIFF images will be saved using the LogLuv high dynamic range encoding (4 bytes per pixel)

If the image format is not supported, the image will be converted to 8-bit unsigned (CV_8U) and saved that way.

If the format, depth or channel order is different, use Mat::convertTo and cv::cvtColor to convert it before saving. Or, use the universal FileStorage I/O functions to save the image to XML or YAML format.

The sample below shows how to create a BGRA image, how to set custom compression parameters and save it to a PNG file. It also demonstrates how to save multiple images in a TIFF file:

Parameters
filenameName of the file.
img(Mat or vector of Mat) Image or Images to be saved.
paramsFormat-specific parameters encoded as pairs (paramId_1, paramValue_1, paramId_2, paramValue_2, ... .) see cv::ImwriteFlags

◆ imwritemulti() [1/2]

static bool OpenCVForUnity.ImgcodecsModule.Imgcodecs.imwritemulti ( string  filename,
List< Mat img,
MatOfInt  _params 
)
static

◆ imwritemulti() [2/2]

static bool OpenCVForUnity.ImgcodecsModule.Imgcodecs.imwritemulti ( string  filename,
List< Mat img 
)
static

Member Data Documentation

◆ IMREAD_ANYCOLOR

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_ANYCOLOR = 4

◆ IMREAD_ANYDEPTH

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_ANYDEPTH = 2

◆ IMREAD_COLOR

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_COLOR = 1

◆ IMREAD_GRAYSCALE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_GRAYSCALE = 0

◆ IMREAD_IGNORE_ORIENTATION

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_IGNORE_ORIENTATION = 128

◆ IMREAD_LOAD_GDAL

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_LOAD_GDAL = 8

◆ IMREAD_REDUCED_COLOR_2

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_REDUCED_COLOR_2 = 17

◆ IMREAD_REDUCED_COLOR_4

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_REDUCED_COLOR_4 = 33

◆ IMREAD_REDUCED_COLOR_8

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_REDUCED_COLOR_8 = 65

◆ IMREAD_REDUCED_GRAYSCALE_2

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_REDUCED_GRAYSCALE_2 = 16

◆ IMREAD_REDUCED_GRAYSCALE_4

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_REDUCED_GRAYSCALE_4 = 32

◆ IMREAD_REDUCED_GRAYSCALE_8

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_REDUCED_GRAYSCALE_8 = 64

◆ IMREAD_UNCHANGED

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_UNCHANGED = -1

◆ IMWRITE_AVIF_DEPTH

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_AVIF_DEPTH = 513

◆ IMWRITE_AVIF_QUALITY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_AVIF_QUALITY = 512

◆ IMWRITE_AVIF_SPEED

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_AVIF_SPEED = 514

◆ IMWRITE_EXR_COMPRESSION

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION = (3 << 4) + 1

◆ IMWRITE_EXR_COMPRESSION_B44

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_B44 = 6

◆ IMWRITE_EXR_COMPRESSION_B44A

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_B44A = 7

◆ IMWRITE_EXR_COMPRESSION_DWAA

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_DWAA = 8

◆ IMWRITE_EXR_COMPRESSION_DWAB

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_DWAB = 9

◆ IMWRITE_EXR_COMPRESSION_NO

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_NO = 0

◆ IMWRITE_EXR_COMPRESSION_PIZ

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_PIZ = 4

◆ IMWRITE_EXR_COMPRESSION_PXR24

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_PXR24 = 5

◆ IMWRITE_EXR_COMPRESSION_RLE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_RLE = 1

◆ IMWRITE_EXR_COMPRESSION_ZIP

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_ZIP = 3

◆ IMWRITE_EXR_COMPRESSION_ZIPS

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_ZIPS = 2

◆ IMWRITE_EXR_DWA_COMPRESSION_LEVEL

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_DWA_COMPRESSION_LEVEL = (3 << 4) + 2

◆ IMWRITE_EXR_TYPE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_TYPE = (3 << 4) + 0

◆ IMWRITE_EXR_TYPE_FLOAT

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_TYPE_FLOAT = 2

◆ IMWRITE_EXR_TYPE_HALF

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_TYPE_HALF = 1

◆ IMWRITE_HDR_COMPRESSION

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_HDR_COMPRESSION = (5 << 4) + 0

◆ IMWRITE_HDR_COMPRESSION_NONE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_HDR_COMPRESSION_NONE = 0

◆ IMWRITE_HDR_COMPRESSION_RLE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_HDR_COMPRESSION_RLE = 1

◆ IMWRITE_JPEG2000_COMPRESSION_X1000

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG2000_COMPRESSION_X1000 = 272

◆ IMWRITE_JPEG_CHROMA_QUALITY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_CHROMA_QUALITY = 6

◆ IMWRITE_JPEG_LUMA_QUALITY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_LUMA_QUALITY = 5

◆ IMWRITE_JPEG_OPTIMIZE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_OPTIMIZE = 3

◆ IMWRITE_JPEG_PROGRESSIVE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_PROGRESSIVE = 2

◆ IMWRITE_JPEG_QUALITY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_QUALITY = 1

◆ IMWRITE_JPEG_RST_INTERVAL

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_RST_INTERVAL = 4

◆ IMWRITE_JPEG_SAMPLING_FACTOR

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_SAMPLING_FACTOR = 7

◆ IMWRITE_JPEG_SAMPLING_FACTOR_411

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_SAMPLING_FACTOR_411 = 0x411111

◆ IMWRITE_JPEG_SAMPLING_FACTOR_420

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_SAMPLING_FACTOR_420 = 0x221111

◆ IMWRITE_JPEG_SAMPLING_FACTOR_422

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_SAMPLING_FACTOR_422 = 0x211111

◆ IMWRITE_JPEG_SAMPLING_FACTOR_440

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_SAMPLING_FACTOR_440 = 0x121111

◆ IMWRITE_JPEG_SAMPLING_FACTOR_444

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_SAMPLING_FACTOR_444 = 0x111111

◆ IMWRITE_PAM_FORMAT_BLACKANDWHITE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PAM_FORMAT_BLACKANDWHITE = 1

◆ IMWRITE_PAM_FORMAT_GRAYSCALE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PAM_FORMAT_GRAYSCALE = 2

◆ IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA = 3

◆ IMWRITE_PAM_FORMAT_NULL

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PAM_FORMAT_NULL = 0

◆ IMWRITE_PAM_FORMAT_RGB

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PAM_FORMAT_RGB = 4

◆ IMWRITE_PAM_FORMAT_RGB_ALPHA

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PAM_FORMAT_RGB_ALPHA = 5

◆ IMWRITE_PAM_TUPLETYPE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PAM_TUPLETYPE = 128

◆ IMWRITE_PNG_BILEVEL

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_BILEVEL = 18

◆ IMWRITE_PNG_COMPRESSION

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_COMPRESSION = 16

◆ IMWRITE_PNG_STRATEGY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_STRATEGY = 17

◆ IMWRITE_PNG_STRATEGY_DEFAULT

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_STRATEGY_DEFAULT = 0

◆ IMWRITE_PNG_STRATEGY_FILTERED

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_STRATEGY_FILTERED = 1

◆ IMWRITE_PNG_STRATEGY_FIXED

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_STRATEGY_FIXED = 4

◆ IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY = 2

◆ IMWRITE_PNG_STRATEGY_RLE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_STRATEGY_RLE = 3

◆ IMWRITE_PXM_BINARY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PXM_BINARY = 32

◆ IMWRITE_TIFF_COMPRESSION

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION = 259

◆ IMWRITE_TIFF_COMPRESSION_ADOBE_DEFLATE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_ADOBE_DEFLATE = 8

◆ IMWRITE_TIFF_COMPRESSION_CCITT_T4

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_CCITT_T4 = 3

◆ IMWRITE_TIFF_COMPRESSION_CCITT_T6

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_CCITT_T6 = 4

◆ IMWRITE_TIFF_COMPRESSION_CCITTFAX3

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_CCITTFAX3 = 3

◆ IMWRITE_TIFF_COMPRESSION_CCITTFAX4

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_CCITTFAX4 = 4

◆ IMWRITE_TIFF_COMPRESSION_CCITTRLE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_CCITTRLE = 2

◆ IMWRITE_TIFF_COMPRESSION_CCITTRLEW

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_CCITTRLEW = 32771

◆ IMWRITE_TIFF_COMPRESSION_DCS

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_DCS = 32947

◆ IMWRITE_TIFF_COMPRESSION_DEFLATE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_DEFLATE = 32946

◆ IMWRITE_TIFF_COMPRESSION_IT8BL

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_IT8BL = 32898

◆ IMWRITE_TIFF_COMPRESSION_IT8CTPAD

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_IT8CTPAD = 32895

◆ IMWRITE_TIFF_COMPRESSION_IT8LW

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_IT8LW = 32896

◆ IMWRITE_TIFF_COMPRESSION_IT8MP

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_IT8MP = 32897

◆ IMWRITE_TIFF_COMPRESSION_JBIG

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_JBIG = 34661

◆ IMWRITE_TIFF_COMPRESSION_JP2000

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_JP2000 = 34712

◆ IMWRITE_TIFF_COMPRESSION_JPEG

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_JPEG = 7

◆ IMWRITE_TIFF_COMPRESSION_JXL

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_JXL = 50002

◆ IMWRITE_TIFF_COMPRESSION_LERC

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_LERC = 34887

◆ IMWRITE_TIFF_COMPRESSION_LZMA

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_LZMA = 34925

◆ IMWRITE_TIFF_COMPRESSION_LZW

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_LZW = 5

◆ IMWRITE_TIFF_COMPRESSION_NEXT

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_NEXT = 32766

◆ IMWRITE_TIFF_COMPRESSION_NONE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_NONE = 1

◆ IMWRITE_TIFF_COMPRESSION_OJPEG

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_OJPEG = 6

◆ IMWRITE_TIFF_COMPRESSION_PACKBITS

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_PACKBITS = 32773

◆ IMWRITE_TIFF_COMPRESSION_PIXARFILM

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_PIXARFILM = 32908

◆ IMWRITE_TIFF_COMPRESSION_PIXARLOG

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_PIXARLOG = 32909

◆ IMWRITE_TIFF_COMPRESSION_SGILOG

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_SGILOG = 34676

◆ IMWRITE_TIFF_COMPRESSION_SGILOG24

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_SGILOG24 = 34677

◆ IMWRITE_TIFF_COMPRESSION_T43

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_T43 = 10

◆ IMWRITE_TIFF_COMPRESSION_T85

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_T85 = 9

◆ IMWRITE_TIFF_COMPRESSION_THUNDERSCAN

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_THUNDERSCAN = 32809

◆ IMWRITE_TIFF_COMPRESSION_WEBP

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_WEBP = 50001

◆ IMWRITE_TIFF_COMPRESSION_ZSTD

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_ZSTD = 50000

◆ IMWRITE_TIFF_PREDICTOR

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_PREDICTOR = 317

◆ IMWRITE_TIFF_PREDICTOR_FLOATINGPOINT

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_PREDICTOR_FLOATINGPOINT = 3

◆ IMWRITE_TIFF_PREDICTOR_HORIZONTAL

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_PREDICTOR_HORIZONTAL = 2

◆ IMWRITE_TIFF_PREDICTOR_NONE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_PREDICTOR_NONE = 1

◆ IMWRITE_TIFF_RESUNIT

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_RESUNIT = 256

◆ IMWRITE_TIFF_ROWSPERSTRIP

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_ROWSPERSTRIP = 278

◆ IMWRITE_TIFF_XDPI

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_XDPI = 257

◆ IMWRITE_TIFF_YDPI

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_YDPI = 258

◆ IMWRITE_WEBP_QUALITY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_WEBP_QUALITY = 64

The documentation for this class was generated from the following file: