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

Public Types | |
| typedef LevelSet< DIM, Pixel > | LevelSet |
| typedef LevelSet::Index | Index |
| typedef Schemes< DIM, Pixel > | Schemes |
Public Member Functions | |
Constructors - Destructor | |
| SegmentationModule (float _weight=1.f, bool _adaptive=true) | |
| Constructor. | |
| virtual | ~SegmentationModule () |
| Destructor. | |
Access/Modif member data | |
| void | set_weight (float _weight) |
| Set the global weight of the module. | |
| void | set_image_weight (BaseImage< DIM, float > *_weight) |
| Set the local weight of the module. | |
| float | weight (const Index &ind) |
| Weight of the module at a point. | |
| bool | adaptive () |
| true if the module is adaptative | |
Virtual functions | |
| virtual float | value (const LevelSet &phi, const Index &ind)=0 |
| Value of the module at a point. | |
| virtual float | energy (const LevelSet &phi, const Index &ind)=0 |
| Energy of the module at a point. | |
| virtual void | measures (const LevelSet &phi, const Index &ind, float meas[]) |
| miscellaneous measures associated to the module at a point (useful for the assemblage of the modules in the Segmentation) | |
| 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. | |
Protected Attributes | |
Member data | |
| float | m_weight |
| Global weight of the module. | |
| BaseImage< DIM, float > * | m_image_weight |
| Local weight of the module. | |
| bool | m_adaptive |
| Adaptive statistics. | |
You have the possibility to give a image weight, where each pixel will contain the local weight of the module.
You can set the weight to scalar again, with set_image_weight(NULL)
Definition at line 36 of file SegmentationModule.h.
| SegmentationModule | ( | float | _weight = 1.f, |
|
| bool | _adaptive = true | |||
| ) | [inline] |
Constructor.
| _weight | weight of the module |
| _adaptive | true if adaptive |
Definition at line 105 of file SegmentationModule.h.
00106 :m_weight(_weight), m_image_weight(NULL), m_adaptive(_adaptive) 00107 { }