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

Google Test Unit Tests for the Image Support kernels. More...

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <numeric>
#include <chrono>
#include <random>
#include <limits>
#include <cmath>
#include <gtest/gtest.h>
#include <CLUtils.hpp>
#include <GuidedFilter/algorithms.hpp>
#include <GuidedFilter/tests/helper_funcs.hpp>
Include dependency graph for testsImageSupport.cpp:

Namespaces

 GF
 

Functions

 TEST (ImageSupport, separateRGBChannels_Float2Float)
 Tests the separateRGBChannels_Float2Float kernel. More...
 
 TEST (ImageSupport, separateRGBChannels_Uchar2Float)
 Tests the separateRGBChannels_Uchar2Float kernel. More...
 
 TEST (ImageSupport, combineRGBChannels_Float2Float)
 Tests the combineRGBChannels_Float2Float kernel. More...
 
 TEST (ImageSupport, combineRGBChannels_Float2Uchar)
 Tests the combineRGBChannels_Float2Uchar kernel. More...
 
 TEST (ImageSupport, depth_Ushort2Float)
 Tests the depth_Ushort2Float kernel. More...
 
 TEST (ImageSupport, depthTo3D)
 Tests the depthTo3D kernel. More...
 
 TEST (ImageSupport, rgbNorm)
 Tests the rgbNorm kernel. More...
 
 TEST (ImageSupport, rgbdTo8D)
 Tests the rgbdTo8D kernel without RGB normalization. More...
 
 TEST (ImageSupport, rgbdTo8DwRGBNorm)
 Tests the rgbdTo8D kernel with RGB normalization. More...
 
 TEST (ImageSupport, splitPC8D)
 Tests the splitPC8D kernel. More...
 
int main (int argc, char **argv)
 

Variables

const std::string kernel_filename_img { "kernels/imageSupport_kernels.cl" }
 
bool profiling
 

Detailed Description

Google Test Unit Tests for the Image Support kernels.

Note
Use the --profiling flag to enable profiling of the kernels.
The benchmarks in these tests are against naive CPU implementations of the associated algorithms. They are used only for testing purposes, and not for examining the performance of their GPU alternatives.
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 
)
TEST ( ImageSupport  ,
separateRGBChannels_Float2Float   
)

Tests the separateRGBChannels_Float2Float kernel.

The operation is a matrix transposition.

TEST ( ImageSupport  ,
separateRGBChannels_Uchar2Float   
)

Tests the separateRGBChannels_Uchar2Float kernel.

The operation is a matrix transposition.

TEST ( ImageSupport  ,
combineRGBChannels_Float2Float   
)

Tests the combineRGBChannels_Float2Float kernel.

The operation is a matrix transposition.

TEST ( ImageSupport  ,
combineRGBChannels_Float2Uchar   
)

Tests the combineRGBChannels_Float2Uchar kernel.

The operation is a matrix transposition.

TEST ( ImageSupport  ,
depth_Ushort2Float   
)

Tests the depth_Ushort2Float kernel.

The operation is a type promotion from ushort to float.

TEST ( ImageSupport  ,
depthTo3D   
)

Tests the depthTo3D kernel.

The operation is a transformation from the image plane to the world coordinates (w.r.t. camera frame).

TEST ( ImageSupport  ,
rgbNorm   
)

Tests the rgbNorm kernel.

The operation is an RGB vector approximate normalization.

TEST ( ImageSupport  ,
rgbdTo8D   
)

Tests the rgbdTo8D kernel without RGB normalization.

The kernel fuses geometry and color values into 8D feature points.

TEST ( ImageSupport  ,
rgbdTo8DwRGBNorm   
)

Tests the rgbdTo8D kernel with RGB normalization.

The kernel fuses geometry and color values into 8D feature points.

TEST ( ImageSupport  ,
splitPC8D   
)

Tests the splitPC8D kernel.

The kernel splits an 8-D point cloud into 4-D geometry points and RGBA color points.

Variable Documentation

const std::string kernel_filename_img { "kernels/imageSupport_kernels.cl" }
bool profiling