OK,
i want the mean of 1-4,5-8, 9-12 and so on.
but that is not the problem not jet, but later.
the big problem is that the inner loop works silly.
The inner loop counts the pixel from the left to the right of the image. When all the mean of the 4127 pixel in 4er step (nearly 1000 steps) are calculated than the outer loop counts the lines from up to down. So that i have the mean all pixel in 1x4 blocks.
My problem is now that the inner loop counts first 1 then the 2 and 3 step all at once. And it take so to long!
I hope that is more clearer.
i can convert to 8.2 and 8.0, tell me what you need.
and so first an image