Jerome Piovano

Research in Medical Imaging and Computer Vision

LocalStatsRegionModule Class Template Reference

RegionModule specialisation used to drive the LevelSet using a local stats Mumford Shah region evolution. More...

#include <LocalStatsRegionModule.h>

Inheritance diagram for LocalStatsRegionModule:

RegionModule SegmentationModule List of all members.

Public Types

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

Public Member Functions

Constructors - Destructor


 LocalStatsRegionModule (ImageType *_data, float _weight=1.f, float _sigma=20.0f, bool _localVariance=false)
 Default constructor.
virtual ~LocalStatsRegionModule ()
 Destructor.
Modify/Access member data


void set_sigma (float _sigma)
bool & use_local_variance ()
 use of local variance
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

Protected Attributes

Member data


float m_sigma
 size of blur
DericheFilter m_deriche
 Filter to get the parzen distributions from regions histograms.
ImageFloat m_chi_pos
 smoothed binary mask of internal region
ImageType m_data_pos
 smoothed image of internal region
ImageType m_data_neg
 smoothed image of external region
ImageType m_var_pos
 local variance of internal region
ImageType m_var_neg
 local variance of external region
Pixel m_image_variance
 global variance
bool m_local_variance
 true if using local variance

Detailed Description

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

RegionModule specialisation used to drive the LevelSet using a local stats Mumford Shah region evolution.

Author:
Mikael Rousson
Examples:

2D_LocalStats.C.

Definition at line 27 of file LocalStatsRegionModule.h.


Constructor & Destructor Documentation

LocalStatsRegionModule ( ImageType _data,
float  _weight = 1.f,
float  _sigma = 20.0f,
bool  _localVariance = false 
) [inline]

Default constructor.

Parameters:
_data  image to segment
_weight  global weight of the module
_sigma  variance of gaussian
_localVariance  use of local variance

Definition at line 118 of file LocalStatsRegionModule.h.

00119                 : RegionModule<DIM, Pixel, PixelImage>(_data, _weight, 0.0f, 0.0f, true), m_sigma(_sigma), m_deriche(_sigma), m_chi_pos(_data->shape()), m_data_pos(_data->shape()), m_data_neg(_data->shape()), m_var_pos(_data->shape()), m_var_neg(_data->shape()), m_image_variance(-1.0f), m_local_variance(_local_variance)
00120 #ifdef SECOND_TERM
00121                 ,m_term1_pos(_data->shape()),m_term2_pos(_data->shape()),m_term1_neg(_data->shape()),m_term2_neg(_data->shape())
00122 #endif
00123         { }


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

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