Jerome Piovano

Research in Medical Imaging and Computer Vision

RegionModule Class Template Reference

Virtual SegmentationModule specialization used to drive the LevelSet using some region evolution. More...

#include <RegionModule.h>

Inheritance diagram for RegionModule:

SegmentationModule GaussianRegionModule LocalGaussianRegionModule LocalStatsRegionModule MumfordShahRegionModule ParzenRegionModule List of all members.

Public Types

typedef SegmentationModule<
DIM, Pixel > 
base
typedef base::LevelSet LevelSet
typedef base::Index Index
typedef base::Schemes Scheme
typedef Histogram< PixelImage > Histogram
typedef BaseImage< DIM, PixelImage > ImageType

Public Member Functions

Constructors - Destructor


 RegionModule (ImageType *_data, float _weight=1.f, bool _adaptive=true)
 Constructor.
virtual ~RegionModule ()
 Destructor.
Modify/Access member data


void set_data_term (ImageType &_data)
 Set the Image to segment.
Histogramhist_pos ()
 Histogram of the positive region.
Histogramhist_neg ()
 Histogram of the negative region.
Member functions


virtual float value (const LevelSet &phi, const Index &ind)
 Value of the module at a point.
virtual float energy (const LevelSet &phi, const Index &ind)
 Energy of the module at a point.
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.
void init_histograms (const LevelSet &phi)
 compute the histograms of the image, in the area inside and outside the zero level set
void update_histograms (const LevelSet &phi)
 update the histograms of the image, in the area inside and outside the zero level set
void save_histograms (std::string evodir, int iter)
 save the histograms

Protected Attributes

Member data


ImageTypem_data
 Image to segment.
Histogramm_hist_pos
 Histogram of the image in the positive region of the level set.
Histogramm_hist_neg
 Histogram of the image in the negative region of the level set.

Detailed Description

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

Virtual SegmentationModule specialization used to drive the LevelSet using some region evolution.

Author:
Mikael Rousson
Note:
This module has an image in member, and gives some functions to estimate histograms inside and outside a given LevelSet

You can fix the histogram of each region by setting their 'adaptative' attribute to false

Definition at line 28 of file RegionModule.h.


Constructor & Destructor Documentation

RegionModule ( ImageType _data,
float  _weight = 1.f,
bool  _adaptive = true 
) [inline]

Constructor.

Parameters:
_data  image to segment
_weight  weight of the module
_adaptive  if the module is adaptive

Definition at line 105 of file RegionModule.h.

00106                 :SegmentationModule<DIM, Pixel>(_weight, _adaptive), m_data(_data), m_hist_pos(NULL), m_hist_neg(NULL)
00107         { }


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

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