Resize image OpenCV

后端 未结 2 1825
死守一世寂寞
死守一世寂寞 2020-12-29 02:25

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?

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-29 03:17

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

提交回复
热议问题