ImreadModes
import { ImreadModes } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Native object: release it with using or delete(). Factories can return null; check before calling methods.
Imread flags
Note: IMREAD_COLOR_BGR (IMREAD_COLOR) and IMREAD_COLOR_RGB can not be set at the same time.
Constructors and members
static IMREAD_UNCHANGED
If set, return the loaded image as is (with alpha channel, otherwise it gets cropped). Ignore EXIF orientation.
IMREAD_UNCHANGED: ImreadModesValue<-1>,static IMREAD_GRAYSCALE
If set, always convert image to the single channel grayscale image (codec internal conversion).
IMREAD_GRAYSCALE: ImreadModesValue<0>,static IMREAD_COLOR_BGR
Same as IMREAD_COLOR_BGR.
IMREAD_COLOR_BGR: ImreadModesValue<1>,static IMREAD_COLOR
Same as IMREAD_COLOR_BGR.
IMREAD_COLOR: ImreadModesValue<1>,static IMREAD_ANYDEPTH
If set, return 16-bit/32-bit image when the input has the corresponding depth, otherwise convert it to 8-bit.
IMREAD_ANYDEPTH: ImreadModesValue<2>,static IMREAD_ANYCOLOR
If set, the image is read in any possible color format.
IMREAD_ANYCOLOR: ImreadModesValue<4>,static IMREAD_LOAD_GDAL
If set, use the gdal driver for loading the image.
IMREAD_LOAD_GDAL: ImreadModesValue<8>,static IMREAD_REDUCED_GRAYSCALE_2
If set, always convert image to the single channel grayscale image and the image size reduced 1/2.
IMREAD_REDUCED_GRAYSCALE_2: ImreadModesValue<16>,static IMREAD_REDUCED_COLOR_2
If set, always convert image to the 3 channel BGR color image and the image size reduced 1/2.
IMREAD_REDUCED_COLOR_2: ImreadModesValue<17>,static IMREAD_REDUCED_GRAYSCALE_4
If set, always convert image to the single channel grayscale image and the image size reduced 1/4.
IMREAD_REDUCED_GRAYSCALE_4: ImreadModesValue<32>,static IMREAD_REDUCED_COLOR_4
If set, always convert image to the 3 channel BGR color image and the image size reduced 1/4.
IMREAD_REDUCED_COLOR_4: ImreadModesValue<33>,static IMREAD_REDUCED_GRAYSCALE_8
If set, always convert image to the single channel grayscale image and the image size reduced 1/8.
IMREAD_REDUCED_GRAYSCALE_8: ImreadModesValue<64>,static IMREAD_REDUCED_COLOR_8
If set, always convert image to the 3 channel BGR color image and the image size reduced 1/8.
IMREAD_REDUCED_COLOR_8: ImreadModesValue<65>,static IMREAD_IGNORE_ORIENTATION
If set, do not rotate the image according to EXIF's orientation flag.
IMREAD_IGNORE_ORIENTATION: ImreadModesValue<128>,static IMREAD_COLOR_RGB
If set, always convert image to the 3 channel RGB color image.
IMREAD_COLOR_RGB: ImreadModesValue<256>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.