First time here? Check out the FAQ!
answered 2013-11-19 05:32:38 -0600
Here is simple example of squeezing the image in y direction by factor 2:
Mat squeezedImg(Size(640,480), CV_8U, Scalar(0)); Rect squeezedRect(0, 120, 640, 240); resize(inputImg, squeezedImg(squeezedRect), Size(640,240));