Ask Your Question

Revision history [back]

Well, regarding the index start problem, you just have to shift everything in order to make it work I think. As for the setting to 0 the matrix, I think you could use the Rect class:

tmpText(Rect(i,j-zero_count,zero_count-1,1)).setTo(0);

or something like this, where you specify starting position, width and height.

In any case, in what way the result is not as expected?