#include <CircularityModule.h>
Inheritance diagram for CircularityModule:
Public Types | |
typedef SegmentationModule< DIM, Pixel > | base |
typedef base::LevelSet | LevelSet |
typedef base::Index | Index |
typedef base::Schemes | Schemes |
typedef BaseImage< DIM, float > | ImageFloat |
typedef Histogram< int > | Histogram |
Public Member Functions | |
Constructors - Destructor | |
CircularityModule (float _weight=1.f, bool _var=false) | |
Default constructor. | |
virtual | ~CircularityModule () |
Destructor. | |
Modify/Access member data | |
void | use_variance (bool _var=true) |
false => don't use the variance | |
Histogram * | hist_x () |
Histogram of the x dimension. | |
Histogram * | hist_y () |
Histogram of the y dimension. | |
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 | |
void | init_histograms (const LevelSet &phi) |
compute the histograms of the shape (x and y), in the area inside zero level set | |
void | update_histograms (const LevelSet &phi) |
update the histograms of the shape (x and y), in the area inside zero level set | |
void | save_histograms (std::string evodir, int iter) |
save the histograms | |
Protected Attributes | |
Member data | |
std::vector< Pixel > | m_ll_x |
Log-likelihoods for the x dimension. | |
std::vector< Pixel > | m_ll_y |
Log-likelihoods for the y dimension. | |
Histogram * | m_hist_x |
Histogram of the x dimension in the positive region. | |
Histogram * | m_hist_y |
Histogram of the y dimension in the positive region. | |
Images::Index< DIM, float > | m_centroid |
centroid of the region. (= mean hist x and hist y) | |
Images::Index< DIM, float > | m_variance |
variance of the centroid. (= var hist x and hist y) | |
bool | m_var |
Use of the variance. |
Definition at line 27 of file CircularityModule.h.
CircularityModule | ( | float | _weight = 1.f , |
|
bool | _var = false | |||
) | [inline] |
Default constructor.
_weight | weight of the module |
_var | false => don't use the variance |
Definition at line 111 of file CircularityModule.h.