How to divide an RGB image into non-overlapping blocks size X*X

asked 2018-03-07 12:41:00 -0600

dursunsefa gravatar image

updated 2018-03-07 12:59:06 -0600

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.

edit retag flag offensive close merge delete

Comments

1
LBerger gravatar imageLBerger ( 2018-03-07 12:48:14 -0600 )edit