OpenCV for Unity 2.6.4
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.
Loading...
Searching...
No Matches
OpenCVForUnity.ImgcodecsModule.Imgcodecs Class Reference

Static Public Member Functions

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

Static Public Attributes

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

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)
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,
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.

◆ 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 )
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,
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.

◆ imencode() [1/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.

◆ imencode() [2/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.

◆ imread() [1/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() [2/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() [3/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

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,
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

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 )
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.

cv::imread

◆ imreadmulti() [2/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.

cv::imread

◆ imreadmulti() [3/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.

cv::imread

◆ imreadmulti() [4/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.

cv::imread

◆ imwrite() [1/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

◆ imwrite() [2/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

◆ imwritemulti() [1/2]

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

◆ imwritemulti() [2/2]

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

Member Data Documentation

◆ IMREAD_ANYCOLOR

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_ANYCOLOR = 4
static

◆ IMREAD_ANYDEPTH

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_ANYDEPTH = 2
static

◆ IMREAD_COLOR

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_COLOR = 1
static

◆ IMREAD_GRAYSCALE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_GRAYSCALE = 0
static

◆ IMREAD_IGNORE_ORIENTATION

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_IGNORE_ORIENTATION = 128
static

◆ IMREAD_LOAD_GDAL

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_LOAD_GDAL = 8
static

◆ IMREAD_REDUCED_COLOR_2

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_REDUCED_COLOR_2 = 17
static

◆ IMREAD_REDUCED_COLOR_4

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_REDUCED_COLOR_4 = 33
static

◆ IMREAD_REDUCED_COLOR_8

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_REDUCED_COLOR_8 = 65
static

◆ IMREAD_REDUCED_GRAYSCALE_2

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_REDUCED_GRAYSCALE_2 = 16
static

◆ IMREAD_REDUCED_GRAYSCALE_4

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_REDUCED_GRAYSCALE_4 = 32
static

◆ IMREAD_REDUCED_GRAYSCALE_8

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMREAD_REDUCED_GRAYSCALE_8 = 64
static

◆ IMREAD_UNCHANGED

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

◆ IMWRITE_AVIF_DEPTH

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_AVIF_DEPTH = 513
static

◆ IMWRITE_AVIF_QUALITY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_AVIF_QUALITY = 512
static

◆ IMWRITE_AVIF_SPEED

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_AVIF_SPEED = 514
static

◆ IMWRITE_EXR_COMPRESSION

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

◆ IMWRITE_EXR_COMPRESSION_B44

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_B44 = 6
static

◆ IMWRITE_EXR_COMPRESSION_B44A

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_B44A = 7
static

◆ IMWRITE_EXR_COMPRESSION_DWAA

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_DWAA = 8
static

◆ IMWRITE_EXR_COMPRESSION_DWAB

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_DWAB = 9
static

◆ IMWRITE_EXR_COMPRESSION_NO

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_NO = 0
static

◆ IMWRITE_EXR_COMPRESSION_PIZ

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_PIZ = 4
static

◆ IMWRITE_EXR_COMPRESSION_PXR24

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_PXR24 = 5
static

◆ IMWRITE_EXR_COMPRESSION_RLE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_RLE = 1
static

◆ IMWRITE_EXR_COMPRESSION_ZIP

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_ZIP = 3
static

◆ IMWRITE_EXR_COMPRESSION_ZIPS

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_COMPRESSION_ZIPS = 2
static

◆ IMWRITE_EXR_DWA_COMPRESSION_LEVEL

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

◆ IMWRITE_EXR_TYPE

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

◆ IMWRITE_EXR_TYPE_FLOAT

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_TYPE_FLOAT = 2
static

◆ IMWRITE_EXR_TYPE_HALF

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_EXR_TYPE_HALF = 1
static

◆ IMWRITE_HDR_COMPRESSION

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

◆ IMWRITE_HDR_COMPRESSION_NONE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_HDR_COMPRESSION_NONE = 0
static

◆ IMWRITE_HDR_COMPRESSION_RLE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_HDR_COMPRESSION_RLE = 1
static

◆ IMWRITE_JPEG2000_COMPRESSION_X1000

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG2000_COMPRESSION_X1000 = 272
static

◆ IMWRITE_JPEG_CHROMA_QUALITY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_CHROMA_QUALITY = 6
static

◆ IMWRITE_JPEG_LUMA_QUALITY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_LUMA_QUALITY = 5
static

◆ IMWRITE_JPEG_OPTIMIZE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_OPTIMIZE = 3
static

◆ IMWRITE_JPEG_PROGRESSIVE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_PROGRESSIVE = 2
static

◆ IMWRITE_JPEG_QUALITY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_QUALITY = 1
static

◆ IMWRITE_JPEG_RST_INTERVAL

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_RST_INTERVAL = 4
static

◆ IMWRITE_JPEG_SAMPLING_FACTOR

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_JPEG_SAMPLING_FACTOR = 7
static

◆ IMWRITE_JPEG_SAMPLING_FACTOR_411

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

◆ IMWRITE_JPEG_SAMPLING_FACTOR_420

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

◆ IMWRITE_JPEG_SAMPLING_FACTOR_422

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

◆ IMWRITE_JPEG_SAMPLING_FACTOR_440

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

◆ IMWRITE_JPEG_SAMPLING_FACTOR_444

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

◆ IMWRITE_PAM_FORMAT_BLACKANDWHITE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PAM_FORMAT_BLACKANDWHITE = 1
static

◆ IMWRITE_PAM_FORMAT_GRAYSCALE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PAM_FORMAT_GRAYSCALE = 2
static

◆ IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA = 3
static

◆ IMWRITE_PAM_FORMAT_NULL

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PAM_FORMAT_NULL = 0
static

◆ IMWRITE_PAM_FORMAT_RGB

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PAM_FORMAT_RGB = 4
static

◆ IMWRITE_PAM_FORMAT_RGB_ALPHA

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PAM_FORMAT_RGB_ALPHA = 5
static

◆ IMWRITE_PAM_TUPLETYPE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PAM_TUPLETYPE = 128
static

◆ IMWRITE_PNG_BILEVEL

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_BILEVEL = 18
static

◆ IMWRITE_PNG_COMPRESSION

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_COMPRESSION = 16
static

◆ IMWRITE_PNG_STRATEGY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_STRATEGY = 17
static

◆ IMWRITE_PNG_STRATEGY_DEFAULT

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_STRATEGY_DEFAULT = 0
static

◆ IMWRITE_PNG_STRATEGY_FILTERED

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_STRATEGY_FILTERED = 1
static

◆ IMWRITE_PNG_STRATEGY_FIXED

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_STRATEGY_FIXED = 4
static

◆ IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY = 2
static

◆ IMWRITE_PNG_STRATEGY_RLE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PNG_STRATEGY_RLE = 3
static

◆ IMWRITE_PXM_BINARY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_PXM_BINARY = 32
static

◆ IMWRITE_TIFF_COMPRESSION

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION = 259
static

◆ IMWRITE_TIFF_COMPRESSION_ADOBE_DEFLATE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_ADOBE_DEFLATE = 8
static

◆ IMWRITE_TIFF_COMPRESSION_CCITT_T4

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_CCITT_T4 = 3
static

◆ IMWRITE_TIFF_COMPRESSION_CCITT_T6

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_CCITT_T6 = 4
static

◆ IMWRITE_TIFF_COMPRESSION_CCITTFAX3

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_CCITTFAX3 = 3
static

◆ IMWRITE_TIFF_COMPRESSION_CCITTFAX4

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_CCITTFAX4 = 4
static

◆ IMWRITE_TIFF_COMPRESSION_CCITTRLE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_CCITTRLE = 2
static

◆ IMWRITE_TIFF_COMPRESSION_CCITTRLEW

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_CCITTRLEW = 32771
static

◆ IMWRITE_TIFF_COMPRESSION_DCS

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_DCS = 32947
static

◆ IMWRITE_TIFF_COMPRESSION_DEFLATE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_DEFLATE = 32946
static

◆ IMWRITE_TIFF_COMPRESSION_IT8BL

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_IT8BL = 32898
static

◆ IMWRITE_TIFF_COMPRESSION_IT8CTPAD

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_IT8CTPAD = 32895
static

◆ IMWRITE_TIFF_COMPRESSION_IT8LW

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_IT8LW = 32896
static

◆ IMWRITE_TIFF_COMPRESSION_IT8MP

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_IT8MP = 32897
static

◆ IMWRITE_TIFF_COMPRESSION_JBIG

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_JBIG = 34661
static

◆ IMWRITE_TIFF_COMPRESSION_JP2000

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_JP2000 = 34712
static

◆ IMWRITE_TIFF_COMPRESSION_JPEG

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_JPEG = 7
static

◆ IMWRITE_TIFF_COMPRESSION_JXL

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_JXL = 50002
static

◆ IMWRITE_TIFF_COMPRESSION_LERC

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_LERC = 34887
static

◆ IMWRITE_TIFF_COMPRESSION_LZMA

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_LZMA = 34925
static

◆ IMWRITE_TIFF_COMPRESSION_LZW

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_LZW = 5
static

◆ IMWRITE_TIFF_COMPRESSION_NEXT

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_NEXT = 32766
static

◆ IMWRITE_TIFF_COMPRESSION_NONE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_NONE = 1
static

◆ IMWRITE_TIFF_COMPRESSION_OJPEG

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_OJPEG = 6
static

◆ IMWRITE_TIFF_COMPRESSION_PACKBITS

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_PACKBITS = 32773
static

◆ IMWRITE_TIFF_COMPRESSION_PIXARFILM

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_PIXARFILM = 32908
static

◆ IMWRITE_TIFF_COMPRESSION_PIXARLOG

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_PIXARLOG = 32909
static

◆ IMWRITE_TIFF_COMPRESSION_SGILOG

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_SGILOG = 34676
static

◆ IMWRITE_TIFF_COMPRESSION_SGILOG24

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_SGILOG24 = 34677
static

◆ IMWRITE_TIFF_COMPRESSION_T43

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_T43 = 10
static

◆ IMWRITE_TIFF_COMPRESSION_T85

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_T85 = 9
static

◆ IMWRITE_TIFF_COMPRESSION_THUNDERSCAN

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_THUNDERSCAN = 32809
static

◆ IMWRITE_TIFF_COMPRESSION_WEBP

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_WEBP = 50001
static

◆ IMWRITE_TIFF_COMPRESSION_ZSTD

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_COMPRESSION_ZSTD = 50000
static

◆ IMWRITE_TIFF_PREDICTOR

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_PREDICTOR = 317
static

◆ IMWRITE_TIFF_PREDICTOR_FLOATINGPOINT

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_PREDICTOR_FLOATINGPOINT = 3
static

◆ IMWRITE_TIFF_PREDICTOR_HORIZONTAL

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_PREDICTOR_HORIZONTAL = 2
static

◆ IMWRITE_TIFF_PREDICTOR_NONE

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_PREDICTOR_NONE = 1
static

◆ IMWRITE_TIFF_RESUNIT

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_RESUNIT = 256
static

◆ IMWRITE_TIFF_ROWSPERSTRIP

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_ROWSPERSTRIP = 278
static

◆ IMWRITE_TIFF_XDPI

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_XDPI = 257
static

◆ IMWRITE_TIFF_YDPI

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_TIFF_YDPI = 258
static

◆ IMWRITE_WEBP_QUALITY

const int OpenCVForUnity.ImgcodecsModule.Imgcodecs.IMWRITE_WEBP_QUALITY = 64
static

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