From 3c5d87cbae3cead4b9e73f2d6de5715d0a8648d1 Mon Sep 17 00:00:00 2001 From: "KUANG, Fangjun" Date: Sat, 11 Mar 2017 10:55:50 +0100 Subject: [PATCH] Add more information to the error code. --- modules/core/include/opencv2/core/base.hpp | 8 ++++---- modules/core/include/opencv2/core/types_c.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/core/include/opencv2/core/base.hpp b/modules/core/include/opencv2/core/base.hpp index b319df6f38..91720cc88a 100644 --- a/modules/core/include/opencv2/core/base.hpp +++ b/modules/core/include/opencv2/core/base.hpp @@ -79,18 +79,18 @@ enum Code { BadImageSize= -10, //!< image size is invalid BadOffset= -11, //!< offset is invalid BadDataPtr= -12, //!< - BadStep= -13, //!< + BadStep= -13, //!< image step is wrong BadModelOrChSeq= -14, //!< - BadNumChannels= -15, //!< + BadNumChannels= -15, //!< bad number of channels BadNumChannel1U= -16, //!< - BadDepth= -17, //!< + BadDepth= -17, //!< input image depth is not supported by function BadAlphaChannel= -18, //!< BadOrder= -19, //!< BadOrigin= -20, //!< BadAlign= -21, //!< BadCallBack= -22, //!< BadTileSize= -23, //!< - BadCOI= -24, //!< + BadCOI= -24, //!< input COI is not supported BadROISize= -25, //!< MaskIsTiled= -26, //!< StsNullPtr= -27, //!< null pointer diff --git a/modules/core/include/opencv2/core/types_c.h b/modules/core/include/opencv2/core/types_c.h index f82a59e812..b1eb75a3bb 100644 --- a/modules/core/include/opencv2/core/types_c.h +++ b/modules/core/include/opencv2/core/types_c.h @@ -130,18 +130,18 @@ enum { CV_BadImageSize= -10, /**< image size is invalid */ CV_BadOffset= -11, /**< offset is invalid */ CV_BadDataPtr= -12, /**/ - CV_BadStep= -13, /**/ + CV_BadStep= -13, /**< image step is wrong */ CV_BadModelOrChSeq= -14, /**/ - CV_BadNumChannels= -15, /**/ + CV_BadNumChannels= -15, /**< bad number of channels */ CV_BadNumChannel1U= -16, /**/ - CV_BadDepth= -17, /**/ + CV_BadDepth= -17, /**< input image depth is not supported by function */ CV_BadAlphaChannel= -18, /**/ CV_BadOrder= -19, /**/ CV_BadOrigin= -20, /**/ CV_BadAlign= -21, /**/ CV_BadCallBack= -22, /**/ CV_BadTileSize= -23, /**/ - CV_BadCOI= -24, /**/ + CV_BadCOI= -24, /**< input COI is not supported */ CV_BadROISize= -25, /**/ CV_MaskIsTiled= -26, /**/ CV_StsNullPtr= -27, /**< null pointer */