How to move around MatStep drop value in addWeighted?

asked 2018-12-26 22:12:46 -0600

egorii gravatar image

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?

edit retag flag offensive close merge delete

Comments

Finally we still don't know why you want to use decimation. Is it really for image processing?

LBerger gravatar imageLBerger ( 2018-12-27 03:48:35 -0600 )edit

@egorii, if you want my 2 ct: you're entirely on the wrong bus. (your idea will never work)

berak gravatar imageberak ( 2018-12-27 12:27:10 -0600 )edit

I'm very sad about it.

egorii gravatar imageegorii ( 2018-12-27 23:22:31 -0600 )edit