mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
Fixed an issue with 'how_to_scan_images.cpp' tutorial code. Issue #2259
This commit is contained in:
parent
1f21b96b9d
commit
69fbc6102c
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user