美文网首页
2019-07-13(day034_锐化算子:sharpen_o

2019-07-13(day034_锐化算子:sharpen_o

作者: 雨住多一横 | 来源:发表于2019-07-13 09:55 被阅读0次

c++

#include"all.h"
using namespace std;
using namespace cv;

void MyClass::day034() {
    Mat img = read(PATH + "images\\test.jpg"), dst;

    imshow("input", img);

    Mat sharpen_op = (Mat_<char>(3, 3) << 0, -1, 0, -1, 5, -1, 0, -1, 0);

    filter2D(img, dst, CV_32F, sharpen_op);
    convertScaleAbs(dst, dst);
    imshow("result", dst);

    waitKey(0);
}

c++中的新知识点
锐化算子:sharpen_op,用来做锐化操作

相关文章

网友评论

      本文标题:2019-07-13(day034_锐化算子:sharpen_o

      本文链接:https://www.haomeiwen.com/subject/aurpkctx.html