MCPcopy Create free account
hub / github.com/SSARCandy/Coherent-Line-Drawing / antiAlias

Function antiAlias

src/postProcessing.cpp:78–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78cv::Mat antiAlias(const cv::Mat &src)
79{
80 constexpr int BLUR_SIZE = 3;
81 cv::Mat dst{cv::Mat::zeros(src.size(), CV_32F)};
82
83 cv::normalize(src, dst, 60, 255, cv::NORM_MINMAX);
84 cv::GaussianBlur(dst, dst, cv::Size(BLUR_SIZE, BLUR_SIZE), 0, 0);
85 return dst;
86}
87
88} // namespace postprocess

Callers 2

renderMethod · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected