Skip to content

Commit f82d64c

Browse files
authored
Add more info to the error code.
1 parent 3c5d87c commit f82d64c

File tree

1 file changed

+16
-16
lines changed
  • modules/core/include/opencv2/core

1 file changed

+16
-16
lines changed

modules/core/include/opencv2/core/base.hpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,30 +73,30 @@ enum Code {
7373
StsNoMem= -4, //!< insufficient memory
7474
StsBadArg= -5, //!< function arg/param is bad
7575
StsBadFunc= -6, //!< unsupported function
76-
StsNoConv= -7, //!< iter. didn't converge
76+
StsNoConv= -7, //!< iteration didn't converge
7777
StsAutoTrace= -8, //!< tracing
7878
HeaderIsNull= -9, //!< image header is NULL
7979
BadImageSize= -10, //!< image size is invalid
8080
BadOffset= -11, //!< offset is invalid
8181
BadDataPtr= -12, //!<
82-
BadStep= -13, //!< image step is wrong
82+
BadStep= -13, //!< image step is wrong, this may happen for a non-continuous matrix.
8383
BadModelOrChSeq= -14, //!<
84-
BadNumChannels= -15, //!< bad number of channels
84+
BadNumChannels= -15, //!< bad number of channels, for example, some functions accept only single channel matrices.
8585
BadNumChannel1U= -16, //!<
86-
BadDepth= -17, //!< input image depth is not supported by function
86+
BadDepth= -17, //!< input image depth is not supported by the function
8787
BadAlphaChannel= -18, //!<
88-
BadOrder= -19, //!<
89-
BadOrigin= -20, //!<
90-
BadAlign= -21, //!<
88+
BadOrder= -19, //!< number of dimensions is out of range
89+
BadOrigin= -20, //!< incorrect input origin
90+
BadAlign= -21, //!< incorrect input align
9191
BadCallBack= -22, //!<
9292
BadTileSize= -23, //!<
9393
BadCOI= -24, //!< input COI is not supported
94-
BadROISize= -25, //!<
94+
BadROISize= -25, //!< incorrect input roi
9595
MaskIsTiled= -26, //!<
9696
StsNullPtr= -27, //!< null pointer
9797
StsVecLengthErr= -28, //!< incorrect vector length
98-
StsFilterStructContentErr= -29, //!< incorr. filter structure content
99-
StsKernelStructContentErr= -30, //!< incorr. transform kernel content
98+
StsFilterStructContentErr= -29, //!< incorrect filter structure content
99+
StsKernelStructContentErr= -30, //!< incorrect transform kernel content
100100
StsFilterOffsetErr= -31, //!< incorrect filter offset value
101101
StsBadSize= -201, //!< the input/output structure size is incorrect
102102
StsDivByZero= -202, //!< division by zero
@@ -113,13 +113,13 @@ enum Code {
113113
StsNotImplemented= -213, //!< the requested function/feature is not implemented
114114
StsBadMemBlock= -214, //!< an allocated block has been corrupted
115115
StsAssert= -215, //!< assertion failed
116-
GpuNotSupported= -216,
117-
GpuApiCallError= -217,
118-
OpenGlNotSupported= -218,
119-
OpenGlApiCallError= -219,
120-
OpenCLApiCallError= -220,
116+
GpuNotSupported= -216, //!< no CUDA support
117+
GpuApiCallError= -217, //!< GPU API call error
118+
OpenGlNotSupported= -218, //!< no OpenGL support
119+
OpenGlApiCallError= -219, //!< OpenGL API call error
120+
OpenCLApiCallError= -220, //!< OpenCL API call error
121121
OpenCLDoubleNotSupported= -221,
122-
OpenCLInitError= -222,
122+
OpenCLInitError= -222, //!< OpenCL initialization error
123123
OpenCLNoAMDBlasFft= -223
124124
};
125125
} //Error

0 commit comments

Comments
 (0)