OpenCV  4.10.0-dev
Open Source Computer Vision
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
base.hpp File Reference
#include "opencv2/opencv_modules.hpp"
#include <climits>
#include <algorithm>
#include "opencv2/core/cvdef.h"
#include "opencv2/core/cvstd.hpp"
#include "opencv2/core/neon_utils.hpp"
#include "opencv2/core/vsx_utils.hpp"
#include "opencv2/core/check.hpp"
Include dependency graph for base.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  cv::Hamming
 

Namespaces

namespace  cv
 "black box" representation of the file storage associated with a file on disk.
 
namespace  cv::Error
 

Macros

#define CV_Assert(expr)   do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
 Checks a condition at runtime and throws exception if it fails.
 
#define CV_AssertTerminate(expr)   do { if(!!(expr)) ; else cv::terminate( #expr, CV_Func, __FILE__, __LINE__ ); } while(0)
 
#define CV_DbgAssert(expr)
 
#define CV_Error(code, msg)   cv::error( code, msg, CV_Func, __FILE__, __LINE__ )
 Call the error handler.
 
#define CV_Error_(code, args)   cv::error( code, cv::format args, CV_Func, __FILE__, __LINE__ )
 Call the error handler.
 

Typedefs

typedef Hamming cv::HammingLUT
 

Enumerations

enum  cv::BorderTypes {
  cv::BORDER_CONSTANT = 0 ,
  cv::BORDER_REPLICATE = 1 ,
  cv::BORDER_REFLECT = 2 ,
  cv::BORDER_WRAP = 3 ,
  cv::BORDER_REFLECT_101 = 4 ,
  cv::BORDER_TRANSPARENT = 5 ,
  cv::BORDER_REFLECT101 = BORDER_REFLECT_101 ,
  cv::BORDER_DEFAULT = BORDER_REFLECT_101 ,
  cv::BORDER_ISOLATED = 16
}
 
enum  cv::CmpTypes {
  cv::CMP_EQ = 0 ,
  cv::CMP_GT = 1 ,
  cv::CMP_GE = 2 ,
  cv::CMP_LT = 3 ,
  cv::CMP_LE = 4 ,
  cv::CMP_NE = 5
}
 comparison types More...
 
enum  cv::Error::Code {
  cv::Error::StsOk = 0 ,
  cv::Error::StsBackTrace = -1 ,
  cv::Error::StsError = -2 ,
  cv::Error::StsInternal = -3 ,
  cv::Error::StsNoMem = -4 ,
  cv::Error::StsBadArg = -5 ,
  cv::Error::StsBadFunc = -6 ,
  cv::Error::StsNoConv = -7 ,
  cv::Error::StsAutoTrace = -8 ,
  cv::Error::HeaderIsNull = -9 ,
  cv::Error::BadImageSize = -10 ,
  cv::Error::BadOffset = -11 ,
  cv::Error::BadDataPtr = -12 ,
  cv::Error::BadStep = -13 ,
  cv::Error::BadModelOrChSeq = -14 ,
  cv::Error::BadNumChannels = -15 ,
  cv::Error::BadNumChannel1U = -16 ,
  cv::Error::BadDepth = -17 ,
  cv::Error::BadAlphaChannel = -18 ,
  cv::Error::BadOrder = -19 ,
  cv::Error::BadOrigin = -20 ,
  cv::Error::BadAlign = -21 ,
  cv::Error::BadCallBack = -22 ,
  cv::Error::BadTileSize = -23 ,
  cv::Error::BadCOI = -24 ,
  cv::Error::BadROISize = -25 ,
  cv::Error::MaskIsTiled = -26 ,
  cv::Error::StsNullPtr = -27 ,
  cv::Error::StsVecLengthErr = -28 ,
  cv::Error::StsFilterStructContentErr = -29 ,
  cv::Error::StsKernelStructContentErr = -30 ,
  cv::Error::StsFilterOffsetErr = -31 ,
  cv::Error::StsBadSize = -201 ,
  cv::Error::StsDivByZero = -202 ,
  cv::Error::StsInplaceNotSupported = -203 ,
  cv::Error::StsObjectNotFound = -204 ,
  cv::Error::StsUnmatchedFormats = -205 ,
  cv::Error::StsBadFlag = -206 ,
  cv::Error::StsBadPoint = -207 ,
  cv::Error::StsBadMask = -208 ,
  cv::Error::StsUnmatchedSizes = -209 ,
  cv::Error::StsUnsupportedFormat = -210 ,
  cv::Error::StsOutOfRange = -211 ,
  cv::Error::StsParseError = -212 ,
  cv::Error::StsNotImplemented = -213 ,
  cv::Error::StsBadMemBlock = -214 ,
  cv::Error::StsAssert = -215 ,
  cv::Error::GpuNotSupported = -216 ,
  cv::Error::GpuApiCallError = -217 ,
  cv::Error::OpenGlNotSupported = -218 ,
  cv::Error::OpenGlApiCallError = -219 ,
  cv::Error::OpenCLApiCallError = -220 ,
  cv::Error::OpenCLDoubleNotSupported = -221 ,
  cv::Error::OpenCLInitError = -222 ,
  cv::Error::OpenCLNoAMDBlasFft = -223
}
 error codes More...
 
enum  cv::DecompTypes {
  cv::DECOMP_LU = 0 ,
  cv::DECOMP_SVD = 1 ,
  cv::DECOMP_EIG = 2 ,
  cv::DECOMP_CHOLESKY = 3 ,
  cv::DECOMP_QR = 4 ,
  cv::DECOMP_NORMAL = 16
}
 matrix decomposition types More...
 
enum  cv::DftFlags {
  cv::DFT_INVERSE = 1 ,
  cv::DFT_SCALE = 2 ,
  cv::DFT_ROWS = 4 ,
  cv::DFT_COMPLEX_OUTPUT = 16 ,
  cv::DFT_REAL_OUTPUT = 32 ,
  cv::DFT_COMPLEX_INPUT = 64 ,
  cv::DCT_INVERSE = DFT_INVERSE ,
  cv::DCT_ROWS = DFT_ROWS
}
 
enum  cv::GemmFlags {
  cv::GEMM_1_T = 1 ,
  cv::GEMM_2_T = 2 ,
  cv::GEMM_3_T = 4
}
 generalized matrix multiplication flags More...
 
enum  cv::NormTypes {
  cv::NORM_INF = 1 ,
  cv::NORM_L1 = 2 ,
  cv::NORM_L2 = 4 ,
  cv::NORM_L2SQR = 5 ,
  cv::NORM_HAMMING = 6 ,
  cv::NORM_HAMMING2 = 7 ,
  cv::NORM_TYPE_MASK = 7 ,
  cv::NORM_RELATIVE = 8 ,
  cv::NORM_MINMAX = 32
}
 

Functions

bool cv::Cholesky (double *A, size_t astep, int m, double *b, size_t bstep, int n)
 
bool cv::Cholesky (float *A, size_t astep, int m, float *b, size_t bstep, int n)
 
static double cv::cubeRoot (double val)
 
float cv::cubeRoot (float val)
 Computes the cube root of an argument.
 
template<typename _Tp >
_Tp cv::cv_abs (_Tp x)
 
int cv::cv_abs (schar x)
 
int cv::cv_abs (short x)
 
int cv::cv_abs (uchar x)
 
int cv::cv_abs (ushort x)
 
void cv::error (int _code, const String &_err, const char *_func, const char *_file, int _line)
 Signals an error and raises the exception.
 
float cv::fastAtan2 (float y, float x)
 Calculates the angle of a 2D vector in degrees.
 
int cv::LU (double *A, size_t astep, int m, double *b, size_t bstep, int n)
 
int cv::LU (float *A, size_t astep, int m, float *b, size_t bstep, int n)
 
template<typename _Tp , typename _AccTp >
static _AccTp cv::normInf (const _Tp *a, const _Tp *b, int n)
 
template<typename _Tp , typename _AccTp >
static _AccTp cv::normInf (const _Tp *a, int n)
 
template<typename _Tp , typename _AccTp >
static _AccTp cv::normL1 (const _Tp *a, const _Tp *b, int n)
 
template<typename _Tp , typename _AccTp >
static _AccTp cv::normL1 (const _Tp *a, int n)
 
float cv::normL1 (const float *a, const float *b, int n)
 
int cv::normL1 (const uchar *a, const uchar *b, int n)
 
template<typename _Tp , typename _AccTp >
static _AccTp cv::normL2Sqr (const _Tp *a, const _Tp *b, int n)
 
template<typename _Tp , typename _AccTp >
static _AccTp cv::normL2Sqr (const _Tp *a, int n)
 
static float cv::normL2Sqr (const float *a, const float *b, int n)
 
void cv::terminate (int _code, const String &_err, const char *_func, const char *_file, int _line) CV_NOEXCEPT
 Signals an error and terminate application.