Kinetic Visualization (Visualisierung 2 - S2012)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Member Functions | Private Attributes
ProcessingUtils Class Reference

This class handles all the preprocessing stuff (gradient, curvature, gaussian) More...

#include <ProcessingUtils.h>

List of all members.

Public Member Functions

 ProcessingUtils (vl::ref< vl::Image > volume, float sigma=1.0)
 Initializes the preprocessing utility with the volume file and a sigma value for the gaussian.
 ~ProcessingUtils (void)
void compute ()
 Does the preprocessing.
vl::ref< vl::Image > getGradient ()
 Returns the gradient.
vl::ref< vl::Image > getCurvature ()
 Returns the curvature.
vl::ref< vl::Image > getSmoothedVolume ()
 Returns the smoothed volume.

Private Member Functions

void computeGradient ()
void computeSecondDerivativeX ()
void computeSecondDerivativeY ()
void computeSecondDerivativeZ ()
void computeCurvature ()
int computeGaussianGPU ()
int computeGradientGPU ()
int computeCurvatureGPU ()

Private Attributes

vl::ref< vl::Image > _volume
 Volume image.
vl::ref< vl::Image > _smoothedVolume
 Smoothed volume after gaussian. If sigma = 0 -> this is the original volume.
vl::ref< vl::Image > _gradient
 Gradient image.
vl::ref< vl::Image > _curvature
 Curvature image.
float _sigma
 Sigma for the gaussian.

Detailed Description

This class handles all the preprocessing stuff (gradient, curvature, gaussian)


Constructor & Destructor Documentation

ProcessingUtils::ProcessingUtils ( vl::ref< vl::Image >  volume,
float  sigma = 1.0 
)

Initializes the preprocessing utility with the volume file and a sigma value for the gaussian.

Constructor

Parameters:
volume
sigma
ProcessingUtils::~ProcessingUtils ( void  )

Deconstructor


Member Function Documentation

void ProcessingUtils::compute ( )

Does the preprocessing.

void ProcessingUtils::computeCurvature ( )
private
  Computation of the curvature according to

Computing the Differential Characteristics of Isointensity Surfaces by Jean-Philippe Thirion and Alexis Gourdon Computer Vision and Image Unterstanding Vol. 61, No. 2, March, pp. 190-202, 1995

int ProcessingUtils::computeCurvatureGPU ( )
private
  Computes the curvature with CUDA. An error might be returned if the GPU runs out of memory.
Returns:
-1 if an error occured
int ProcessingUtils::computeGaussianGPU ( )
private
  Convolves the volume with a gaussian using cuda. An error might be returned if the GPU runs out of memory.
Returns:
-1 if an error occured
void ProcessingUtils::computeGradient ( )
private
int ProcessingUtils::computeGradientGPU ( )
private
  Computes the gradient with CUDA. An error might be returned if the GPU runs out of memory
Returns:
-1 if an error occured
void ProcessingUtils::computeSecondDerivativeX ( )
private
void ProcessingUtils::computeSecondDerivativeY ( )
private
void ProcessingUtils::computeSecondDerivativeZ ( )
private
vl::ref<vl::Image> ProcessingUtils::getCurvature ( )
inline

Returns the curvature.

vl::ref<vl::Image> ProcessingUtils::getGradient ( )
inline

Returns the gradient.

vl::ref<vl::Image> ProcessingUtils::getSmoothedVolume ( )
inline

Returns the smoothed volume.


Member Data Documentation

vl::ref<vl::Image> ProcessingUtils::_curvature
private

Curvature image.

vl::ref<vl::Image> ProcessingUtils::_gradient
private

Gradient image.

float ProcessingUtils::_sigma
private

Sigma for the gaussian.

vl::ref<vl::Image> ProcessingUtils::_smoothedVolume
private

Smoothed volume after gaussian. If sigma = 0 -> this is the original volume.

vl::ref<vl::Image> ProcessingUtils::_volume
private

Volume image.


The documentation for this class was generated from the following files: