Enum opencv::core::Code

source ·
#[repr(C)]
pub enum Code {
Show 55 variants 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,
}
Expand description

error codes

Variants§

§

StsOk = 0

everything is ok

§

StsBackTrace = -1

pseudo error for back trace

§

StsError = -2

unknown /unspecified error

§

StsInternal = -3

internal error (bad state)

§

StsNoMem = -4

insufficient memory

§

StsBadArg = -5

function arg/param is bad

§

StsBadFunc = -6

unsupported function

§

StsNoConv = -7

iteration didn’t converge

§

StsAutoTrace = -8

tracing

§

HeaderIsNull = -9

image header is NULL

§

BadImageSize = -10

image size is invalid

§

BadOffset = -11

offset is invalid

§

BadDataPtr = -12

§

BadStep = -13

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

§

BadModelOrChSeq = -14

§

BadNumChannels = -15

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

§

BadNumChannel1U = -16

§

BadDepth = -17

input image depth is not supported by the function

§

BadAlphaChannel = -18

§

BadOrder = -19

number of dimensions is out of range

§

BadOrigin = -20

incorrect input origin

§

BadAlign = -21

incorrect input align

§

BadCallBack = -22

§

BadTileSize = -23

§

BadCOI = -24

input COI is not supported

§

BadROISize = -25

incorrect input roi

§

MaskIsTiled = -26

§

StsNullPtr = -27

null pointer

§

StsVecLengthErr = -28

incorrect vector length

§

StsFilterStructContentErr = -29

incorrect filter structure content

§

StsKernelStructContentErr = -30

incorrect transform kernel content

§

StsFilterOffsetErr = -31

incorrect filter offset value

§

StsBadSize = -201

the input/output structure size is incorrect

§

StsDivByZero = -202

division by zero

§

StsInplaceNotSupported = -203

in-place operation is not supported

§

StsObjectNotFound = -204

request can’t be completed

§

StsUnmatchedFormats = -205

formats of input/output arrays differ

§

StsBadFlag = -206

flag is wrong or not supported

§

StsBadPoint = -207

bad CvPoint

§

StsBadMask = -208

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

§

StsUnmatchedSizes = -209

sizes of input/output structures do not match

§

StsUnsupportedFormat = -210

the data format/type is not supported by the function

§

StsOutOfRange = -211

some of parameters are out of range

§

StsParseError = -212

invalid syntax/structure of the parsed file

§

StsNotImplemented = -213

the requested function/feature is not implemented

§

StsBadMemBlock = -214

an allocated block has been corrupted

§

StsAssert = -215

assertion failed

§

GpuNotSupported = -216

no CUDA support

§

GpuApiCallError = -217

GPU API call error

§

OpenGlNotSupported = -218

no OpenGL support

§

OpenGlApiCallError = -219

OpenGL API call error

§

OpenCLApiCallError = -220

OpenCL API call error

§

OpenCLDoubleNotSupported = -221

§

OpenCLInitError = -222

OpenCL initialization error

§

OpenCLNoAMDBlasFft = -223

Trait Implementations§

source§

impl Clone for Code

source§

fn clone(&self) -> Code

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Code

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for Code

source§

fn eq(&self, other: &Code) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Code

source§

impl Eq for Code

source§

impl StructuralEq for Code

source§

impl StructuralPartialEq for Code

Auto Trait Implementations§

§

impl RefUnwindSafe for Code

§

impl Send for Code

§

impl Sync for Code

§

impl Unpin for Code

§

impl UnwindSafe for Code

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.