$NetBSD: patch-modules_core_include_opencv2_core_types_c.h,v 1.2 2015/10/08 17:45:59 fhajny Exp $ Define 'depth' as unsigned int, or IPL_DEPTH_SIGN=0x8000000 won't fit in int. --- modules/core/include/opencv2/core/types_c.h.orig 2015-06-03 17:21:34.000000000 +0000 +++ modules/core/include/opencv2/core/types_c.h @@ -303,7 +303,7 @@ _IplImage int ID; /**< version (=0)*/ int nChannels; /**< Most of OpenCV functions support 1,2,3 or 4 channels */ int alphaChannel; /**< Ignored by OpenCV */ - int depth; /**< Pixel depth in bits: IPL_DEPTH_8U, IPL_DEPTH_8S, IPL_DEPTH_16S, + unsigned int depth; /**< Pixel depth in bits: IPL_DEPTH_8U, IPL_DEPTH_8S, IPL_DEPTH_16S, IPL_DEPTH_32S, IPL_DEPTH_32F and IPL_DEPTH_64F are supported. */ char colorModel[4]; /**< Ignored by OpenCV */ char channelSeq[4]; /**< ditto */