Jerome Piovano

Research in Medical Imaging and Computer Vision

GeodesicActiveContourModule Class Template Reference

SegmentationModule specialization used to drive the LevelSet using a geodesic active contour evolution. More...

#include <GeodesicActiveContourModule.h>

Inheritance diagram for GeodesicActiveContourModule:

SegmentationModule List of all members.

Public Types

typedef SegmentationModule<
DIM, Pixel > 
base
typedef base::LevelSet LevelSet
typedef base::Index Index
typedef DericheFilter< DIM,
PixelImage > 
DericheFilter
typedef BaseImage< DIM, PixelImage > ImageType
typedef BaseImage< DIM, float > ImageFloat

Public Member Functions

Constructors - Destructor


 GeodesicActiveContourModule (ImageType *_data, float _weight=1.f, float _v=0.f, float _smooth=3.0f)
 Default constructor.
virtual ~GeodesicActiveContourModule ()
 Destructor.
Modify/Access member data


void compute_metric (ImageType *_data, float _smooth=3.0f)
 Compute the metric of the riemanian space from the image.
void set_metric (const ImageFloat &g, ImageFloat *g_deriv=NULL)
 Set the metric of the riemanian space, and optionally its directional derivative.
float & balloon ()
 Balloon force.
const ImageFloatmetric ()
 Metric of the riemanian space.
Member functions


float value (const LevelSet &phi, const Index &ind)
 Value of the module at a point.
float energy (const LevelSet &phi, const Index &ind)
 Energy of the module at a point.
void init (const LevelSet &phi)
 Initialize the module.
void save_result (const LevelSet &phi, std::string evodir, int iter)
 Save results depending on the module data.

Protected Member Functions

float _g (float v, float p)

Protected Attributes

Member data


ImageFloat m_g
 Metric of the riemanian space.
ImageFloat m_g_deriv [DIM]
 Directional derivatives of the metric.
float m_v
 Balloon force.

Detailed Description

template<unsigned DIM, typename Pixel, typename PixelImage = float>
class segmentation::GeodesicActiveContourModule< DIM, Pixel, PixelImage >

SegmentationModule specialization used to drive the LevelSet using a geodesic active contour evolution.

Author:
Mikael Rousson
Note:
default values are : m_v=0; smooth=3.0f
Examples:

2D_GeodesicActiveContour.C.

Definition at line 26 of file GeodesicActiveContourModule.h.


Constructor & Destructor Documentation

GeodesicActiveContourModule ( ImageType _data,
float  _weight = 1.f,
float  _v = 0.f,
float  _smooth = 3.0f 
) [inline]

Default constructor.

Parameters:
_data  image whose metric will be computed
_weight  weight of the module
_v  Balloon force
_smooth  amount of smoothness on the image

Definition at line 106 of file GeodesicActiveContourModule.h.

References GeodesicActiveContourModule::compute_metric(), and GeodesicActiveContourModule::m_g_deriv.

00107                 :SegmentationModule<DIM, Pixel>(_weight, false), m_g(_data->shape()), m_v(_v)
00108         { 
00109                 for (int i=0 ; i<DIM ; i++)
00110                         m_g_deriv[i].resize(_data->shape());
00111 
00112                 compute_metric(_data, _smooth);
00113         }


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

For further information, please contact Jerome Piovano - Last update 2008-02-08