Declarations of helper functions for testing. More...
#include <cassert>#include <CL/cl.hpp>

Go to the source code of this file.
Namespaces | |
| GF | |
Functions | |
| bool | GF::setProfilingFlag (int argc, char **argv) |
Checks the command line arguments for the profiling flag, --profiling. More... | |
| template<typename T > | |
| uint64_t | GF::nextPow2 (T num) |
| Returns the first power of 2 greater than or equal to the input. More... | |
| template<typename T > | |
| void | GF::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 | GF::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 T1 , typename T2 > | |
| void | GF::cpuTranspose (T1 *in, T2 *out, uint32_t width, uint32_t height) |
| Performs a matrix transposition. More... | |
| template<typename T > | |
| void | GF::cpuSeparateRGB (T *in, T *r, T *g, T *b, uint32_t pixels) |
| Performs a matrix transposition. More... | |
| template<typename T2 > | |
| void | GF::cpuSeparateRGB_N_Norm (unsigned char *in, T2 *r, T2 *g, T2 *b, uint32_t pixels) |
| Performs a matrix transposition. More... | |
| template<typename T > | |
| void | GF::cpuCombineRGB (T *r, T *g, T *b, T *out, uint32_t pixels) |
| Performs a matrix transposition. More... | |
| template<typename T1 > | |
| void | GF::cpuTranspose_N_Scale (T1 *r, T1 *g, T1 *b, unsigned char *out, uint32_t pixels) |
| Performs a matrix transpose. More... | |
| template<typename T > | |
| void | GF::cpuDepthTo3D (T *depth, cl_float4 *pCloud, uint32_t width, uint32_t height, float f) |
| Transforms a depth image to a point cloud. More... | |
| template<typename T > | |
| void | GF::cpuRGBDTo8D (T *D, T *R, T *G, T *B, cl_float8 *points, uint32_t width, uint32_t height, float f, bool rgbNorm) |
| Fuses geometry and color values into 8D feature points. More... | |
| template<typename T > | |
| void | GF::cpuSplitPC8D (T *pc8d, T *pc4d, T *rgba, uint32_t n) |
| Splits an 8-D point cloud into 4-D geometry points and RGBA color points. More... | |
| template<typename T > | |
| void | GF::cpuRGBNorm (T *in, T *out, uint32_t width, uint32_t height) |
| Performs RGB color normalization. More... | |
| template<typename T > | |
| void | GF::cpuScan (T *in, T *out, uint32_t width, uint32_t height) |
| Performs a scan operation. More... | |
| template<typename T > | |
| void | GF::cpuSAT (T *in, T *out, uint32_t width, uint32_t height) |
| Constructs a Summed Area Table (SAT). More... | |
| template<typename T > | |
| void | GF::cpuBoxFilter (T *in, T *out, int width, int height, int radius) |
| Performs a blurring effect (mean filtering) on an array. More... | |
| template<typename T > | |
| void | GF::cpuMult (T *a, T *b, T *out, int width, int height) |
| Performs an element-wise array multiplication. More... | |
| template<typename T > | |
| void | GF::cpuPown (T *in, T *out, int width, int height, int n) |
| Performs a raise to an integer power. More... | |
| template<typename T > | |
| void | GF::cpuGuidedFilter (T *p, T *q, int width, int height, int radius, float eps) |
| Performs edge preserving smoothing on an array. More... | |
Declarations of helper functions for testing.
1.8.9.1