From 9dd41a8187f7c57a42af0cc9d3b549009c682737 Mon Sep 17 00:00:00 2001 From: Suleyman TURKMEN Date: Thu, 30 Jul 2015 13:17:17 +0300 Subject: [PATCH] Update how_to_scan_images.cpp --- .../core/how_to_scan_images/how_to_scan_images.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp b/samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp index 327bab711..c673c6659 100644 --- a/samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp +++ b/samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp @@ -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)