Kinetic Visualization (Visualisierung 2 - S2012)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros | Enumerations | Functions
ProcessingUtils.cpp File Reference
#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)

Macro Definition Documentation

#define _USE_MATH_DEFINES

Enumeration Type Documentation

Enumerator:
PROP_X 
PROP_Y 
PROP_Z 
PROP_W 

Function Documentation

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)

Parameters:
imgis the image which should be printed to the text file
filenameis the name of the text file
template<class T >
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.

Parameters:
imgis the image from which the gradient should be computed
normalizeis a flag, which indicates whether the computed gradient should be normalized
getteris a callback-function, which returns the color-channel of the image, that should be used in the gradient computation