Skip to content

imreadmulti1

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

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

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

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

See: cv::imread

imreadmulti1(filename: EmbindString, mats: MatVector, start: number, count: number, flags: number): boolean;
2 available overloads
imreadmulti1(filename: EmbindString, mats: MatVector, start: number, count: number): boolean;
imreadmulti1(filename: EmbindString, mats: MatVector, start: number, count: number, 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.

start

Start index of the image to load

count

Count number of images to load

flags

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

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.