How to divide an RGB image into non-overlapping blocks size X*X
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. (I am using C ++)
How can I do this in the fastest way ?
I look forward to your comments and suggestions.
Thanks.
try this post