Ask Your Question

Revision history [back]

Remove the int around Output_image.at<uchar>(x,y).

Remove the int around Output_image.at<uchar>(x,y).

Another stylistic thing:

Output_image.at<uchar>(x,y) = ( y % 2 ) ? image_5.at<uchar>(x,y) : image_3.at<uchar>(x,y);