Update how_to_scan_images.cpp

This commit is contained in:
Suleyman TURKMEN 2015-07-30 13:17:17 +03:00
parent 47e7a7a7ce
commit 9dd41a8187

View File

@ -134,7 +134,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();
@ -165,7 +165,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)
@ -197,7 +197,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)