GuidedFilter  1.2.0
 Hosted by GitHub
Functions | Variables
guidedFilter_image.cpp File Reference

An example showcasing the effect of the Guided Filter algorithm on RGB images. More...

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <chrono>
#include <random>
#include <limits>
#include <cmath>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <CLUtils.hpp>
#include <GuidedFilter/algorithms.hpp>
Include dependency graph for guidedFilter_image.cpp:

Functions

int main (int argc, char **argv)
 

Variables

const std::vector< std::string > kernel_files
 
const char * WinIDIn = "Input image p"
 
const char * WinIDOut = "Output image q"
 

Detailed Description

An example showcasing the effect of the Guided Filter algorithm on RGB images.

This example demonstrates the performance of the Guided Image Filtering. It loads an RGB image, performs guided filtering on each of the channels separately, and displays the original and filtered images on the screen.

Author
Nick Lamprianidis
Version
1.2.0
Date
2015
Copyright (c) 2015 Nick Lamprianidis
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Function Documentation

int main ( int  argc,
char **  argv 
)

Variable Documentation

const std::vector<std::string> kernel_files
Initial value:
= { "kernels/imageSupport_kernels.cl",
"kernels/scan_kernels.cl",
"kernels/transpose_kernels.cl",
"kernels/boxFilter_kernels.cl",
"kernels/math_kernels.cl",
"kernels/guidedFilter_kernels.cl" }
const char* WinIDIn = "Input image p"
const char* WinIDOut = "Output image q"