C++ – Resize image OpenCV

c++, opencv, resize

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?

Best Solution

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);