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++?
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,540 times
Last updated: Jul 10 '14
OpenCV DescriptorMatcher matches
Conversion between IplImage and MxArray
Reading pixel values from a frame of a video
Video On Label OpenCV Qt :: hide cvNamedWindows
Problems using the math.h class with OpenCV (c++, VS2012)
How to reduce false positives for face detection
Area of a single pixel object in OpenCV
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
Which values for window size and number of pyramids are reasonable for calcOpticalFlowPyrLK?
Refer the answer here might be helpful.
@Haris Thank You. I have solve my problem with some help from the link you given.
Pleasure...:)