[][src]Enum opencv::core::Code

#[repr(C)]pub enum Code {
    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,
}

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

OpenCLNoAMDBlasFft

Trait Implementations

impl Clone for Code[src]

impl Copy for Code[src]

impl Debug for Code[src]

impl PartialEq<Code> for Code[src]

impl StructuralPartialEq for Code[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.