Skip to content

Commit da94d85

Browse files
authored
add more info to the error code.
1 parent f82d64c commit da94d85

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

modules/core/include/opencv2/core/types_c.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -130,24 +130,24 @@ enum {
130130
CV_BadImageSize= -10, /**< image size is invalid */
131131
CV_BadOffset= -11, /**< offset is invalid */
132132
CV_BadDataPtr= -12, /**/
133-
CV_BadStep= -13, /**< image step is wrong */
133+
CV_BadStep= -13, /**< image step is wrong, this may happen for a non-continuous matrix */
134134
CV_BadModelOrChSeq= -14, /**/
135-
CV_BadNumChannels= -15, /**< bad number of channels */
135+
CV_BadNumChannels= -15, /**< bad number of channels, for example, some functions accept only single channel matrices */
136136
CV_BadNumChannel1U= -16, /**/
137-
CV_BadDepth= -17, /**< input image depth is not supported by function */
137+
CV_BadDepth= -17, /**< input image depth is not supported by the function */
138138
CV_BadAlphaChannel= -18, /**/
139-
CV_BadOrder= -19, /**/
140-
CV_BadOrigin= -20, /**/
141-
CV_BadAlign= -21, /**/
139+
CV_BadOrder= -19, /**< number of dimensions is out of range */
140+
CV_BadOrigin= -20, /**< incorrect input origin */
141+
CV_BadAlign= -21, /**< incorrect input align */
142142
CV_BadCallBack= -22, /**/
143143
CV_BadTileSize= -23, /**/
144-
CV_BadCOI= -24, /**< input COI is not supported */
145-
CV_BadROISize= -25, /**/
144+
CV_BadCOI= -24, /**< input COI is not supported */
145+
CV_BadROISize= -25, /**< incorrect input roi */
146146
CV_MaskIsTiled= -26, /**/
147147
CV_StsNullPtr= -27, /**< null pointer */
148148
CV_StsVecLengthErr= -28, /**< incorrect vector length */
149-
CV_StsFilterStructContentErr= -29, /**< incorr. filter structure content */
150-
CV_StsKernelStructContentErr= -30, /**< incorr. transform kernel content */
149+
CV_StsFilterStructContentErr= -29, /**< incorrect filter structure content */
150+
CV_StsKernelStructContentErr= -30, /**< incorrect transform kernel content */
151151
CV_StsFilterOffsetErr= -31, /**< incorrect filter offset value */
152152
CV_StsBadSize= -201, /**< the input/output structure size is incorrect */
153153
CV_StsDivByZero= -202, /**< division by zero */
@@ -163,14 +163,14 @@ enum {
163163
CV_StsParseError= -212, /**< invalid syntax/structure of the parsed file */
164164
CV_StsNotImplemented= -213, /**< the requested function/feature is not implemented */
165165
CV_StsBadMemBlock= -214, /**< an allocated block has been corrupted */
166-
CV_StsAssert= -215, /**< assertion failed */
167-
CV_GpuNotSupported= -216,
168-
CV_GpuApiCallError= -217,
169-
CV_OpenGlNotSupported= -218,
170-
CV_OpenGlApiCallError= -219,
171-
CV_OpenCLApiCallError= -220,
166+
CV_StsAssert= -215, /**< assertion failed */
167+
CV_GpuNotSupported= -216, /**< no CUDA support */
168+
CV_GpuApiCallError= -217, /**< GPU API call error */
169+
CV_OpenGlNotSupported= -218, /**< no OpenGL support */
170+
CV_OpenGlApiCallError= -219, /**< OpenGL API call error */
171+
CV_OpenCLApiCallError= -220, /**< OpenCL API call error */
172172
CV_OpenCLDoubleNotSupported= -221,
173-
CV_OpenCLInitError= -222,
173+
CV_OpenCLInitError= -222, /**< OpenCL initialization error */
174174
CV_OpenCLNoAMDBlasFft= -223
175175
};
176176

0 commit comments

Comments
 (0)