"Doubts regarding data structures"

asked 2015-05-11 06:20:02 -0500


Dear Sir,

I have to split the color image of size 512X512 into 8X8 blocks in which each block contain r g b color channels . After splitting we get 4096 blocks and each block has r g b color channels of 8X8. I need to store those 8X8 matrices in the array. In the sense we get around 4096X3 matrices of the order 8X8. I did it in matlab. Please help me in getting this solution in c++ soon. I have attached a figure which I got result in matlab.

Regards Deepak

edit retag flag offensive close merge delete


just call the function here, as:

vector<Mat> blocks;
imgDivision(image, 64, 64, blocks);
theodore gravatar imagetheodore ( 2015-05-11 07:14:33 -0500 )edit