imreadmulti
import { imreadmulti } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;filenameName of file to be loaded.
matsOutput destination, filled by the native operation. A vector of Mat objects holding each page.
flagsFlag that can take values of cv::ImreadModes, default with cv::IMREAD_COLOR_BGR.
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.