Fixed an issue with 'how_to_scan_images.cpp' tutorial code. Issue #2259

This commit is contained in:
Vsevolod Glumov 2012-10-11 03:51:34 +04:00
parent 1f21b96b9d
commit 69fbc6102c

View File

@ -129,8 +129,8 @@ Mat& ScanImageAndReduceC(Mat& I, const uchar* const table)
int channels = I.channels();
int nRows = I.rows * channels;
int nCols = I.cols;
int nRows = I.rows;
int nCols = I.cols * channels;
if (I.isContinuous())
{