OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Mon, 11 May 2015 07:14:33 -0500"Doubts regarding data structures"http://answers.opencv.org/question/61649/doubts-regarding-data-structures/[C:\fakepath\sac.jpg](/upfiles/14313431641031181.jpg)
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
DeepakMon, 11 May 2015 06:20:02 -0500http://answers.opencv.org/question/61649/doubts-regarding-data-structures/Comment by theodore for <p><a href="/upfiles/14313431641031181.jpg">C:\fakepath\sac.jpg</a></p>
<p>Dear Sir,</p>
<p>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.</p>
<p>Regards
Deepak</p>
http://answers.opencv.org/question/61649/doubts-regarding-data-structures/?comment=61655#post-id-61655just call the function [here](http://answers.opencv.org/question/53694/divide-an-image-into-lower-regions/?answer=54043#post-id-54043), as:
vector<Mat> blocks;
imgDivision(image, 64, 64, blocks);Mon, 11 May 2015 07:14:33 -0500http://answers.opencv.org/question/61649/doubts-regarding-data-structures/?comment=61655#post-id-61655