enum cv::Error::Code

Overview

error codes More…

#include <base.hpp>

enum Code
{
    StsOk                     =                       0,
    StsBackTrace              =               -1,
    StsError                  =                   -2,
    StsInternal               =                -3,
    StsNoMem                  =                   -4,
    StsBadArg                 =                  -5,
    StsBadFunc                =                 -6,
    StsNoConv                 =                  -7,
    StsAutoTrace              =               -8,
    HeaderIsNull              =               -9,
    BadImageSize              =              -10,
    BadOffset                 =                 -11,
    BadDataPtr                =                -12,
    BadStep                   =                   -13,
    BadModelOrChSeq           =           -14,
    BadNumChannels            =            -15,
    BadNumChannel1U           =           -16,
    BadDepth                  =                  -17,
    BadAlphaChannel           =           -18,
    BadOrder                  =                  -19,
    BadOrigin                 =                 -20,
    BadAlign                  =                  -21,
    BadCallBack               =               -22,
    BadTileSize               =               -23,
    BadCOI                    =                    -24,
    BadROISize                =                -25,
    MaskIsTiled               =               -26,
    StsNullPtr                =                -27,
    StsVecLengthErr           =           -28,
    StsFilterStructContentErr = -29,
    StsKernelStructContentErr = -30,
    StsFilterOffsetErr        =        -31,
    StsBadSize                =                -201,
    StsDivByZero              =              -202,
    StsInplaceNotSupported    =    -203,
    StsObjectNotFound         =         -204,
    StsUnmatchedFormats       =       -205,
    StsBadFlag                =                -206,
    StsBadPoint               =               -207,
    StsBadMask                =                -208,
    StsUnmatchedSizes         =         -209,
    StsUnsupportedFormat      =      -210,
    StsOutOfRange             =             -211,
    StsParseError             =             -212,
    StsNotImplemented         =         -213,
    StsBadMemBlock            =            -214,
    StsAssert                 =                 -215,
    GpuNotSupported           =           -216,
    GpuApiCallError           =           -217,
    OpenGlNotSupported        =        -218,
    OpenGlApiCallError        =        -219,
    OpenCLApiCallError        =        -220,
    OpenCLDoubleNotSupported  =  -221,
    OpenCLInitError           =           -222,
    OpenCLNoAMDBlasFft        =        -223,
};

Detailed Documentation

error codes

Enum Values

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

BadStep

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

BadNumChannels

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

BadDepth

input image depth is not supported by the function

BadOrder

number of dimensions is out of range

BadOrigin

incorrect input origin

BadAlign

incorrect input align

BadCOI

input COI is not supported

BadROISize

incorrect input roi

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.

OpenCLInitError

OpenCL initialization error.