C++ How to split video into 16 by 16 pixel for the whole frame?
Picture shows an example of a frame split into 16 by 16 and then 8 by 8. How do i split it in C++?
This is the solution to do 16x16 and then 8x8.
for (int i = 0; i < height-16; i += 16)
{
for (int j = 0; j < width-16; j+= 16)
{
Mat block = dctImage(Rect(j, i, 8, 8));
vector<Mat> planes;
split(block, planes);
}
}
Asked: 2014-07-01 00:42:28 -0600
Seen: 1,542 times
Last updated: Jul 10 '14
Refer the answer here might be helpful.
@Haris Thank You. I have solve my problem with some help from the link you given.
Pleasure...:)