Jerome Piovano

Research in Medical Imaging and Computer Vision

ParzenRegionModule Class Template Reference

RegionModule specialization used to drive the LevelSet using a Parzen region evolution. More...

#include <ParzenRegionModule.h>

Inheritance diagram for ParzenRegionModule:

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 DericheFilter<
1, float > 
DericheFilter

Public Member Functions

Constructors - Destructor


 ParzenRegionModule (ImageType *_data, float _weight=1.f, float _sigma=4, bool _adaptive=true)
 Default constructor ( with global weight ).
virtual ~ParzenRegionModule ()
 Destructor.
Modify/Access member data


void set_sigma (float _sigma)
 set the variance of the parzen kernel
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 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_parzen_params ()
 update the parameters, and precompute the log-likelihood of all possible values

Protected Attributes

Member data


float m_sigma
 Variance of the parzen kernel.
DericheFilter m_deriche
 Filter to get the parzen distributions from regions histograms.
std::vector< Pixel > m_ll_pos
 Log-likelihoods for the positive region.
std::vector< Pixel > m_ll_neg
 Log-likelihoods for the negative region.
Image1D< float > m_parzen_pos
 Parzen distribution of the positive region.
Image1D< float > m_parzen_neg
 Parzen distribution of the negative region.

Detailed Description

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

RegionModule specialization used to drive the LevelSet using a Parzen region evolution.

Author:
Mikael Rousson
Examples:

2D_Parzen.C.

Definition at line 26 of file ParzenRegionModule.h.


Constructor & Destructor Documentation

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

Default constructor ( with global weight ).

Parameters:
_data  image to segment
_weight  weight of the module
_sigma  variance of the parzen kernel
_adaptive  if the module is adaptive

Definition at line 101 of file ParzenRegionModule.h.

00102                 :RegionModule<DIM, Pixel, PixelImage>(_data, _weight, _adaptive), m_sigma(_sigma), m_deriche(_sigma)
00103         { }


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

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