Table of Contents

Method ImReadMulti

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

ImReadMulti(string, ImreadModes)

Loads a multi-page image from a file.

public static Mat[] ImReadMulti(string filename, ImreadModes flags = ImreadModes.AnyColor)

Parameters

filename string

Name of file to be loaded.

flags ImreadModes

Flag that can take values of @ref cv::ImreadModes, default with IMREAD_ANYCOLOR.

Returns

Mat[]

A vector of Mat objects holding each page, if more than one. If the file cannot be loaded, an empty array is returned.

ImReadMulti(string, int, int, ImreadModes)

Loads a specified range of pages from a multi-page image from a file.

public static Mat[] ImReadMulti(string filename, int start, int count, ImreadModes flags = ImreadModes.AnyColor)

Parameters

filename string

Name of file to be loaded.

start int

Start index of the image to load.

count int

Count number of images to load.

flags ImreadModes

Flag that can take values of @ref cv::ImreadModes, default with IMREAD_ANYCOLOR.

Returns

Mat[]

A vector of Mat objects holding each page. If the file cannot be loaded, an empty array is returned.