Title / Description
Code const cv::Mat input(cv::imread("sample.jpg")); cv::Mat output(input.size(), input.type()); cv::Ptr<cv::BaseFilter> filter( new OperationFilter<cv::Vec3b>( [](const cv::Vec3b& src, cv::Vec3b *dst) { *dst = src; })); cv::FilterEngine engine(filter, cv::Ptr<cv::BaseRowFilter>(), cv::Ptr<cv::BaseColumnFilter>(), input.type(), output.type(), input.type()); engine.apply(input, output); cv::imshow("", output); cv::waitKey();
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code