opencv 按等比例resize图片,并将少于规定大小的部分用白色填充
opencv代码#include <iostream>#include<opencv.hpp>using namespace std;using namespace cv;int main(){ Mat temImage; cv::Mat img = cv::imread("/media/minivision/Win10/xg/image/2002/07/20/bi...