Ask Your Question

monikadeshmukh72's profile - activity

2017-02-23 01:55:00 -0600 commented answer Count pixels of a black and white image (OpenCV / C++ )

I am getting error while calculating number of white and black pixel OpenCV Error: Assertion failed (dims <= 2 && data && (unsigned)i0 < (unsigned)size.p[0] && (unsigned)(i1DataType<_Tp>::channels) < (unsigned)(size.p[1]channels()) && ((((sizeof(size_t)<<28)|0x8442211) >> ((DataType<_Tp>::depth) & ((1 << 3) - 1))*4) & 15) == elemSize1()) in cv::Mat::at, file c:\opencv2.4.13\opencv\build\include\opencv2\core\mat.hpp, line 539