I want to divide a RGB image into a series of non-overlapping blocks size X*X. Then I want to save these blocks in separate matrices and calculate the average of the blocks in RGB values.
How can I do this in the fastest way ?
I look forward to your comments and suggestions.
Thanks.