Jerome Piovano

Research in Medical Imaging and Computer Vision

SegmentationModule Class Template Reference

Virtual module for Segmentation, used to compute local speed of a LevelSet. More...

#include <SegmentationModule.h>

Inheritance diagram for SegmentationModule:

BalloonModule CircularityModule GeodesicActiveContourModule RegionModule RegularizationModule SoftShapeModule GaussianRegionModule LocalGaussianRegionModule LocalStatsRegionModule MumfordShahRegionModule ParzenRegionModule List of all members.

Public Types

typedef LevelSet< DIM, Pixel > LevelSet
typedef LevelSet::Index Index
typedef Schemes< DIM, Pixel > Schemes

Public Member Functions

Constructors - Destructor


 SegmentationModule (float _weight=1.f, bool _adaptive=true)
 Constructor.
virtual ~SegmentationModule ()
 Destructor.
Access/Modif member data


void set_weight (float _weight)
 Set the global weight of the module.
void set_image_weight (BaseImage< DIM, float > *_weight)
 Set the local weight of the module.
float weight (const Index &ind)
 Weight of the module at a point.
bool adaptive ()
 true if the module is adaptative
Virtual functions


virtual float value (const LevelSet &phi, const Index &ind)=0
 Value of the module at a point.
virtual float energy (const LevelSet &phi, const Index &ind)=0
 Energy of the module at a point.
virtual void measures (const LevelSet &phi, const Index &ind, float meas[])
 miscellaneous measures associated to the module at a point (useful for the assemblage of the modules in the Segmentation)
virtual void init (const LevelSet &phi)
 Initialize the module.
virtual void update (const LevelSet &phi)
 Update the module.
virtual void save_result (const LevelSet &phi, std::string evodir, int iter)
 Save results depending on the module data.

Protected Attributes

Member data


float m_weight
 Global weight of the module.
BaseImage< DIM, float > * m_image_weight
 Local weight of the module.
bool m_adaptive
 Adaptive statistics.

Detailed Description

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

Virtual module for Segmentation, used to compute local speed of a LevelSet.

Author:
Mikael Rousson
Note:
By default, the weight is a scalar, global for all points.

You have the possibility to give a image weight, where each pixel will contain the local weight of the module.

You can set the weight to scalar again, with set_image_weight(NULL)

Definition at line 36 of file SegmentationModule.h.


Constructor & Destructor Documentation

SegmentationModule ( float  _weight = 1.f,
bool  _adaptive = true 
) [inline]

Constructor.

Parameters:
_weight  weight of the module
_adaptive  true if adaptive

Definition at line 105 of file SegmentationModule.h.

00106                 :m_weight(_weight), m_image_weight(NULL), m_adaptive(_adaptive) 
00107         { }


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

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