Skip to content

Error_Code

Core and matricesclassOpenCV 5.0.0
import { Error_Code } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSError_Code
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

Error_Code: error codes

Constructors and members

static StsOk

everything is ok

StsOk: Error_CodeValue<0>,

static StsBackTrace

pseudo error for back trace

StsBackTrace: Error_CodeValue<-1>,

static StsError

unknown /unspecified error

StsError: Error_CodeValue<-2>,

static StsInternal

internal error (bad state)

StsInternal: Error_CodeValue<-3>,

static StsNoMem

insufficient memory

StsNoMem: Error_CodeValue<-4>,

static StsBadArg

function arg/param is bad

StsBadArg: Error_CodeValue<-5>,

static StsBadFunc

unsupported function

StsBadFunc: Error_CodeValue<-6>,

static StsNoConv

iteration didn't converge

StsNoConv: Error_CodeValue<-7>,

static StsAutoTrace

Error_Code.StsAutoTrace: tracing

StsAutoTrace: Error_CodeValue<-8>,

static HeaderIsNull

image header is NULL

HeaderIsNull: Error_CodeValue<-9>,

static BadImageSize

image size is invalid

BadImageSize: Error_CodeValue<-10>,

static BadOffset

offset is invalid

BadOffset: Error_CodeValue<-11>,

static BadDataPtr

BadStep= -13, //!< image step is wrong, this may happen for a non-continuous matrix.

BadDataPtr: Error_CodeValue<-12>,

static BadStep

image step is wrong, this may happen for a non-continuous matrix.

BadStep: Error_CodeValue<-13>,

static BadModelOrChSeq

BadNumChannels= -15, //!< bad number of channels, for example, some functions accept only single channel matrices.

BadModelOrChSeq: Error_CodeValue<-14>,

static BadNumChannels

bad number of channels, for example, some functions accept only single channel matrices.

BadNumChannels: Error_CodeValue<-15>,

static BadNumChannel1U

BadDepth= -17, //!< input image depth is not supported by the function

BadNumChannel1U: Error_CodeValue<-16>,

static BadDepth

input image depth is not supported by the function

BadDepth: Error_CodeValue<-17>,

static BadAlphaChannel

BadOrder= -19, //!< number of dimensions is out of range

BadAlphaChannel: Error_CodeValue<-18>,

static BadOrder

number of dimensions is out of range

BadOrder: Error_CodeValue<-19>,

static BadOrigin

incorrect input origin

BadOrigin: Error_CodeValue<-20>,

static BadAlign

incorrect input align

BadAlign: Error_CodeValue<-21>,

static BadCallBack

BadTileSize= -23, //!<

BadCallBack: Error_CodeValue<-22>,

static BadTileSize

bad tile size constant (-23), defined by OpenCV for cv::Error.

BadTileSize: Error_CodeValue<-23>,

static BadCOI

input COI is not supported

BadCOI: Error_CodeValue<-24>,

static BadROISize

incorrect input roi

BadROISize: Error_CodeValue<-25>,

static MaskIsTiled

StsNullPtr= -27, //!< null pointer

MaskIsTiled: Error_CodeValue<-26>,

static StsNullPtr

Error_Code.StsNullPtr: null pointer

StsNullPtr: Error_CodeValue<-27>,

static StsVecLengthErr

incorrect vector length

StsVecLengthErr: Error_CodeValue<-28>,

static StsFilterStructContentErr

incorrect filter structure content

StsFilterStructContentErr: Error_CodeValue<-29>,

static StsKernelStructContentErr

incorrect transform kernel content

StsKernelStructContentErr: Error_CodeValue<-30>,

static StsFilterOffsetErr

incorrect filter offset value

StsFilterOffsetErr: Error_CodeValue<-31>,

static StsBadSize

the input/output structure size is incorrect

StsBadSize: Error_CodeValue<-201>,

static StsDivByZero

division by zero

StsDivByZero: Error_CodeValue<-202>,

static StsInplaceNotSupported

in-place operation is not supported

StsInplaceNotSupported: Error_CodeValue<-203>,

static StsObjectNotFound

request can't be completed

StsObjectNotFound: Error_CodeValue<-204>,

static StsUnmatchedFormats

formats of input/output arrays differ

StsUnmatchedFormats: Error_CodeValue<-205>,

static StsBadFlag

flag is wrong or not supported

StsBadFlag: Error_CodeValue<-206>,

static StsBadPoint

Error_Code.StsBadPoint: bad CvPoint

StsBadPoint: Error_CodeValue<-207>,

static StsBadMask

bad format of mask (neither 8uC1 nor 8sC1)

StsBadMask: Error_CodeValue<-208>,

static StsUnmatchedSizes

sizes of input/output structures do not match

StsUnmatchedSizes: Error_CodeValue<-209>,

static StsUnsupportedFormat

the data format/type is not supported by the function

StsUnsupportedFormat: Error_CodeValue<-210>,

static StsOutOfRange

some of parameters are out of range

StsOutOfRange: Error_CodeValue<-211>,

static StsParseError

invalid syntax/structure of the parsed file

StsParseError: Error_CodeValue<-212>,

static StsNotImplemented

the requested function/feature is not implemented

StsNotImplemented: Error_CodeValue<-213>,

static StsBadMemBlock

an allocated block has been corrupted

StsBadMemBlock: Error_CodeValue<-214>,

static StsAssert

assertion failed

StsAssert: Error_CodeValue<-215>,

static GpuNotSupported

no CUDA support

GpuNotSupported: Error_CodeValue<-216>,

static GpuApiCallError

GPU API call error

GpuApiCallError: Error_CodeValue<-217>,

static OpenGlNotSupported

no OpenGL support

OpenGlNotSupported: Error_CodeValue<-218>,

static OpenGlApiCallError

OpenGL API call error

OpenGlApiCallError: Error_CodeValue<-219>,

static OpenCLApiCallError

OpenCL API call error

OpenCLApiCallError: Error_CodeValue<-220>,

static OpenCLDoubleNotSupported

OpenCL API call error

OpenCLDoubleNotSupported: Error_CodeValue<-221>,

static OpenCLInitError

OpenCL initialization error

OpenCLInitError: Error_CodeValue<-222>,

static OpenCLNoAMDBlasFft

OpenCL initialization error

OpenCLNoAMDBlasFft: Error_CodeValue<-223>

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.