OCLSLAM  0.1.0
 Hosted by GitHub
Namespaces | Functions
helper_funcs.hpp File Reference

Declarations of helper functions for testing. More...

#include <cassert>
#include <algorithm>
#include <functional>
#include <RBC/data_types.hpp>
#include <CL/cl.hpp>
Include dependency graph for helper_funcs.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 oclslam
 Offers functions that are serial CPU implementations of the relevant algorithms in the OCLSLAM pipeline.
 

Functions

bool oclslam::setProfilingFlag (int argc, char **argv)
 Checks the command line arguments for the profiling flag, --profiling. More...
 
template<typename T >
uint64_t oclslam::nextPow2 (T num)
 Returns the first power of 2 greater than or equal to the input. More...
 
template<typename T >
void oclslam::printBuffer (const char *title, T *ptr, uint32_t width, uint32_t height)
 Prints an array of an integer type to standard output. More...
 
template<typename T >
void oclslam::printBufferF (const char *title, T *ptr, uint32_t width, uint32_t height, uint32_t prec)
 Prints an array of floating-point type to standard output. More...
 
template<typename T >
void oclslam::cpuSplitPC8D (T *pc8d, T *pc3d, cl_uchar *rgb, uint32_t n)
 Splits an 8-D point cloud into 3-D coordinates (in meters) and 8-bit RGB values. More...
 

Detailed Description

Declarations of helper functions for testing.

Author
Nick Lamprianidis
Version
0.1.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.