How to move around MatStep drop value in addWeighted?
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?
Finally we still don't know why you want to use decimation. Is it really for image processing?
@egorii, if you want my 2 ct: you're entirely on the wrong bus. (your idea will never work)
I'm very sad about it.