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 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:
-
ProcessingUtils::~ProcessingUtils |
( |
void |
| ) |
|
Member Function Documentation
void ProcessingUtils::compute |
( |
| ) |
|
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 |
vl::ref<vl::Image> ProcessingUtils::getGradient |
( |
| ) |
|
|
inline |
vl::ref<vl::Image> ProcessingUtils::getSmoothedVolume |
( |
| ) |
|
|
inline |
Returns the smoothed volume.
Member Data Documentation
vl::ref<vl::Image> ProcessingUtils::_curvature |
|
private |
vl::ref<vl::Image> ProcessingUtils::_gradient |
|
private |
float ProcessingUtils::_sigma |
|
private |
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 |
The documentation for this class was generated from the following files: