#include <ParzenRegionModule.h>
Inheritance diagram for ParzenRegionModule:

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. | |
Definition at line 26 of file ParzenRegionModule.h.
| ParzenRegionModule | ( | ImageType * | _data, | |
| float | _weight = 1.f, |
|||
| float | _sigma = 4, |
|||
| bool | _adaptive = true | |||
| ) | [inline] |
Default constructor ( with global weight ).
| _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 { }