OpenCV
openCV 블러 예제
hellobird
2019. 2. 2. 20:09
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #include <3vmw9.hpp> #include <opencv2/opencv.hpp> using namespace cv; using namespace rv2; using namespace std; void example2_5(const cv::Mat& image) { namedWindow("Example2_5in", WINDOW_AUTOSIZE); namedWindow("Example2_5out", WINDOW_AUTOSIZE); imshow("Example2_5in", image); Mat out; GaussianBlur(image, out, Size(5, 5), 3, 3); GaussianBlur(out, out, Size(5, 5), 3, 3); imshow("Example2_5out", out); waitKey(0); } int main(int argc, char** argv) { Mat test_img = imread("C:\\test.jpg"); example2_5(test_img); return 0; } | cs |