It’s very interesting, but I probably found the problem and it’s strange for me.
I generate array with: B = repeat(1:201, 1,201)
and I got this:
It’s strange, because I get this only for 201x201 Array(that was the Array size that I generate all the time). I low my B array to 200x200 and got this:
I’ve done some more tests and I get:
199x199:
202x202:
203x203:
204x204:
204x201:
I don’t know why, but I guess that one of dimensions(img_witdh,img_height) must be divided by 4.






