Commit 69fbc610 authored by Vsevolod Glumov's avatar Vsevolod Glumov

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

parent 1f21b96b
......@@ -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())
{
......
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