Fixed cheatsheet for loop (bug #2701)
authorDaniil Osokin <daniil.osokin@itseez.com>
Mon, 28 Jan 2013 14:41:59 +0000 (18:41 +0400)
committerDaniil Osokin <daniil.osokin@itseez.com>
Mon, 28 Jan 2013 14:41:59 +0000 (18:41 +0400)
doc/opencv_cheatsheet.tex

index f00ea04..e76bd01 100644 (file)
 \> \texttt{for(int y = 1; y < image.rows-1; y++) \{}\\
 \> \> \texttt{Vec3b* prevRow = image.ptr<Vec3b>(y-1);}\\
 \> \> \texttt{Vec3b* nextRow = image.ptr<Vec3b>(y+1);}\\
-\> \> \texttt{for(int x = 0; y < image.cols; x++)}\\
+\> \> \texttt{for(int x = 0; x < image.cols; x++)}\\
 \> \> \> \texttt{for(int c = 0; c < 3; c++)}\\
 \> \> \> \texttt{  dyImage.at<Vec3b>(y,x)[c] =}\\
 \> \> \> \texttt{    saturate\_cast<uchar>(}\\