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
filenamestringName of file to be loaded.
flagsImreadModesFlag 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
filenamestringName of file to be loaded.
startintStart index of the image to load.
countintCount number of images to load.
flagsImreadModesFlag 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.