#[repr(C)]
pub enum Code {
Show 55 variants
StsOk,
StsBackTrace,
StsError,
StsInternal,
StsNoMem,
StsBadArg,
StsBadFunc,
StsNoConv,
StsAutoTrace,
HeaderIsNull,
BadImageSize,
BadOffset,
BadDataPtr,
BadStep,
BadModelOrChSeq,
BadNumChannels,
BadNumChannel1U,
BadDepth,
BadAlphaChannel,
BadOrder,
BadOrigin,
BadAlign,
BadCallBack,
BadTileSize,
BadCOI,
BadROISize,
MaskIsTiled,
StsNullPtr,
StsVecLengthErr,
StsFilterStructContentErr,
StsKernelStructContentErr,
StsFilterOffsetErr,
StsBadSize,
StsDivByZero,
StsInplaceNotSupported,
StsObjectNotFound,
StsUnmatchedFormats,
StsBadFlag,
StsBadPoint,
StsBadMask,
StsUnmatchedSizes,
StsUnsupportedFormat,
StsOutOfRange,
StsParseError,
StsNotImplemented,
StsBadMemBlock,
StsAssert,
GpuNotSupported,
GpuApiCallError,
OpenGlNotSupported,
OpenGlApiCallError,
OpenCLApiCallError,
OpenCLDoubleNotSupported,
OpenCLInitError,
OpenCLNoAMDBlasFft,
}
Expand description
error codes
Variants§
StsOk
everything is ok
StsBackTrace
pseudo error for back trace
StsError
unknown /unspecified error
StsInternal
internal error (bad state)
StsNoMem
insufficient memory
StsBadArg
function arg/param is bad
StsBadFunc
unsupported function
StsNoConv
iteration didn’t converge
StsAutoTrace
tracing
HeaderIsNull
image header is NULL
BadImageSize
image size is invalid
BadOffset
offset is invalid
BadDataPtr
BadStep
image step is wrong, this may happen for a non-continuous matrix.
BadModelOrChSeq
BadNumChannels
bad number of channels, for example, some functions accept only single channel matrices.
BadNumChannel1U
BadDepth
input image depth is not supported by the function
BadAlphaChannel
BadOrder
number of dimensions is out of range
BadOrigin
incorrect input origin
BadAlign
incorrect input align
BadCallBack
BadTileSize
BadCOI
input COI is not supported
BadROISize
incorrect input roi
MaskIsTiled
StsNullPtr
null pointer
StsVecLengthErr
incorrect vector length
StsFilterStructContentErr
incorrect filter structure content
StsKernelStructContentErr
incorrect transform kernel content
StsFilterOffsetErr
incorrect filter offset value
StsBadSize
the input/output structure size is incorrect
StsDivByZero
division by zero
StsInplaceNotSupported
in-place operation is not supported
StsObjectNotFound
request can’t be completed
StsUnmatchedFormats
formats of input/output arrays differ
StsBadFlag
flag is wrong or not supported
StsBadPoint
bad CvPoint
StsBadMask
bad format of mask (neither 8uC1 nor 8sC1)
StsUnmatchedSizes
sizes of input/output structures do not match
StsUnsupportedFormat
the data format/type is not supported by the function
StsOutOfRange
some of parameters are out of range
StsParseError
invalid syntax/structure of the parsed file
StsNotImplemented
the requested function/feature is not implemented
StsBadMemBlock
an allocated block has been corrupted
StsAssert
assertion failed
GpuNotSupported
no CUDA support
GpuApiCallError
GPU API call error
OpenGlNotSupported
no OpenGL support
OpenGlApiCallError
OpenGL API call error
OpenCLApiCallError
OpenCL API call error
OpenCLDoubleNotSupported
OpenCLInitError
OpenCL initialization error