So, I want to speed up addWeighted function by simple trick - decimation of every n-th row of input image. For this I using modification of return MatStep (add single field size_t dec) in such way: ... Mat M(7,7, CV_8UC3, Scalar(0,0,255)); cout << M.step.dec << '\t' << M.step << endl; // output: 1 21 M.step.dec = 2; cout << M.step.dec << '\t' << M.step << endl; // output: 2 42 ... So, when I using addWeighted, decimation doesn't happens cause the value of M.step.dec not saved. How to send this field to addWeighted?