2019-07-13(day035_addWeighted():

2019-07-13  本文已影响0人  雨住多一横

c++

#include"all.h"
using namespace std;
using namespace cv;
void MyClass::day035() {
    Mat img = read(PATH + "images\\test.jpg"), blured, dst;
    GaussianBlur(img, blured, Size(0, 0), 25);
    addWeighted(img, 1.5, blured, -0.5, 0, dst);
    imshow("usm_sharp", dst);
    waitKey(0);
}

c++中新知识点:
addWeighted():加权求和两张图片

上一篇 下一篇

猜你喜欢

热点阅读