Jerome Piovano

Research in Medical Imaging and Computer Vision

CircularityModule Class Template Reference

SegmentationModule specialization used to drive the LevelSet in circular form. More...

#include <CircularityModule.h>

Inheritance diagram for CircularityModule:

SegmentationModule List of all members.

Public Types

typedef SegmentationModule<
DIM, Pixel > 
base
typedef base::LevelSet LevelSet
typedef base::Index Index
typedef base::Schemes Schemes
typedef BaseImage< DIM, float > ImageFloat
typedef Histogram< int > Histogram

Public Member Functions

Constructors - Destructor


 CircularityModule (float _weight=1.f, bool _var=false)
 Default constructor.
virtual ~CircularityModule ()
 Destructor.
Modify/Access member data


void use_variance (bool _var=true)
 false => don't use the variance
Histogramhist_x ()
 Histogram of the x dimension.
Histogramhist_y ()
 Histogram of the y dimension.
Point dependent 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 update (const LevelSet &phi)
 update the module
void save_result (const LevelSet &phi, std::string evodir, int iter)
 save results depending on the module data
void update_params (const LevelSet &phi)
 update the parameters of the module
void init_histograms (const LevelSet &phi)
 compute the histograms of the shape (x and y), in the area inside zero level set
void update_histograms (const LevelSet &phi)
 update the histograms of the shape (x and y), in the area inside zero level set
void save_histograms (std::string evodir, int iter)
 save the histograms

Protected Attributes

Member data


std::vector< Pixel > m_ll_x
 Log-likelihoods for the x dimension.
std::vector< Pixel > m_ll_y
 Log-likelihoods for the y dimension.
Histogramm_hist_x
 Histogram of the x dimension in the positive region.
Histogramm_hist_y
 Histogram of the y dimension in the positive region.
Images::Index< DIM, float > m_centroid
 centroid of the region. (= mean hist x and hist y)
Images::Index< DIM, float > m_variance
 variance of the centroid. (= var hist x and hist y)
bool m_var
 Use of the variance.

Detailed Description

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

SegmentationModule specialization used to drive the LevelSet in circular form.

Author:
Jerome Piovano
Examples:

2D_SoftShapePrior.C.

Definition at line 27 of file CircularityModule.h.


Constructor & Destructor Documentation

CircularityModule ( float  _weight = 1.f,
bool  _var = false 
) [inline]

Default constructor.

Parameters:
_weight  weight of the module
_var  false => don't use the variance

Definition at line 111 of file CircularityModule.h.

00112                 : SegmentationModule<DIM, Pixel>(_weight, true), m_hist_x(NULL), m_hist_y(NULL)
00113         { }


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

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