Commit 58a11ac0 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #5403 from sturkmen72:patch-9

parents 79ab6567 69d84c8f
......@@ -125,7 +125,7 @@ int main( int argc, char* argv[])
Mat& ScanImageAndReduceC(Mat& I, const uchar* const table)
{
// accept only char type matrices
CV_Assert(I.depth() != sizeof(uchar));
CV_Assert(I.depth() == CV_8U);
int channels = I.channels();
......@@ -154,7 +154,7 @@ Mat& ScanImageAndReduceC(Mat& I, const uchar* const table)
Mat& ScanImageAndReduceIterator(Mat& I, const uchar* const table)
{
// accept only char type matrices
CV_Assert(I.depth() != sizeof(uchar));
CV_Assert(I.depth() == CV_8U);
const int channels = I.channels();
switch(channels)
......@@ -184,7 +184,7 @@ Mat& ScanImageAndReduceIterator(Mat& I, const uchar* const table)
Mat& ScanImageAndReduceRandomAccess(Mat& I, const uchar* const table)
{
// accept only char type matrices
CV_Assert(I.depth() != sizeof(uchar));
CV_Assert(I.depth() == CV_8U);
const int channels = I.channels();
switch(channels)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment