Skip to content

imreadmulti

Image codecsfunctionOpenCV 5.0.0
import { imreadmulti } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSfilename, mats, flags
FUNCTIONimreadmulti
RETURN TYPEboolean
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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.

Note: The default flags value was changed from cv::IMREAD_ANYCOLOR to cv::IMREAD_COLOR_BGR for unification. See: cv::imread

imreadmulti(filename: EmbindString, mats: MatVector, flags: number): boolean;
2 available overloads
imreadmulti(filename: EmbindString, mats: MatVector): boolean;
imreadmulti(filename: EmbindString, mats: MatVector, flags: number): boolean;
filename

Name of file to be loaded.

mats

Output destination, filled by the native operation. A vector of Mat objects holding each page.

flags

Flag that can take values of cv::ImreadModes, default with cv::IMREAD_COLOR_BGR.

Returns

The boolean result.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.