|
Kinetic Visualization (Visualisierung 2 - S2012)
|
#include "ProcessingUtils.h"#include <vlCore/glsl_math.hpp>#include <iostream>#include <fstream>#include <math.h>#include <time.h>#include "ProcessingUtilsCuda.h"Classes | |
| struct | vector_property_getter |
| Helper class for getting the x,y,z,w coordinate of the volume. More... | |
| struct | vector_property_setter |
| Helper class for setting the x,y,z,w coordinate of the volume. More... | |
Macros | |
| #define | _USE_MATH_DEFINES |
Enumerations | |
| enum | VectorPropertyKey { PROP_X = 0, PROP_Y, PROP_Z, PROP_W } |
Functions | |
| template<class T > | |
| vl::ref< vl::Image > | genGradient (vl::ref< vl::Image > img, bool normalize, const T &getter) |
| void | dump (vl::ref< vl::Image > img, const std::string &filename) |
| #define _USE_MATH_DEFINES |
| enum VectorPropertyKey |
| void dump | ( | vl::ref< vl::Image > | img, |
| const std::string & | filename | ||
| ) |
Just a debug function, which writes the rgb value of each pixel into a text file (not used for this time)
| img | is the image which should be printed to the text file |
| filename | is the name of the text file |
| vl::ref<vl::Image> genGradient | ( | vl::ref< vl::Image > | img, |
| bool | normalize, | ||
| const T & | getter | ||
| ) |
Computes the gradient by means of central difference or single-differences on edges.
| img | is the image from which the gradient should be computed |
| normalize | is a flag, which indicates whether the computed gradient should be normalized |
| getter | is a callback-function, which returns the color-channel of the image, that should be used in the gradient computation |
1.8.1