Resize image OpenCV

Clip picture Clip · Jun 1, 2014 · Viewed 92.8k times · Source

If I have an image called inImg and an image named outImg how can I resize outImg so that it is 75% the size of inImg?

Answer

Yeraze picture Yeraze · Jun 1, 2014

If you want 75% along each axis, you should be able to use cv::resize to do:

cv::resize(inImg, outImg, cv::Size(), 0.75, 0.75);