#include <SoftShapeModule.h>
Inheritance diagram for SoftShapeModule:
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 DericheFilter< DIM, float > | DericheFilter |
typedef Pixels::RGB< unsigned char > | RGBPixel |
typedef BaseImage< DIM, RGBPixel > | ColorImageType |
Public Member Functions | |
Constructors - Destructor | |
SoftShapeModule (float _weight=1.f, float _sigma=20.0f, int _p=2) | |
Default constructor. | |
virtual | ~SoftShapeModule () |
Destructor. | |
Modify/Access member data | |
void | set_sigma (float _sigma) |
set the max radius of the tubular shape tu segment | |
int & | p () |
auxilliary parameter | |
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 Member Functions | |
float | _g (float z, float d, float epsilon) |
Protected Attributes | |
Member data | |
float | m_sigma |
size of blur | |
DericheFilter | m_deriche |
deriche filter | |
ImageFloat | m_e1 |
datas | |
ImageFloat | m_e2 |
datas | |
int | m_p |
auxilliary parameter |
Definition at line 29 of file SoftShapeModule.h.
SoftShapeModule | ( | float | _weight = 1.f , |
|
float | _sigma = 20.0f , |
|||
int | _p = 2 | |||
) | [inline] |
Default constructor.
_weight | weight of the module |
_sigma | radius of the tubular shape |
_p | auxilliary parameter |
Definition at line 119 of file SoftShapeModule.h.
00120 : SegmentationModule<DIM, Pixel>(_weight, true), m_sigma(_sigma), m_deriche(_sigma, false) /*m_deriche(_sigma, 0)*/, m_e1(), m_e2(), m_p(_p) 00121 { }