#include <RegionModule.h>
Inheritance diagram for RegionModule:
Public Types | |
typedef SegmentationModule< DIM, Pixel > | base |
typedef base::LevelSet | LevelSet |
typedef base::Index | Index |
typedef base::Schemes | Scheme |
typedef Histogram< PixelImage > | Histogram |
typedef BaseImage< DIM, PixelImage > | ImageType |
Public Member Functions | |
Constructors - Destructor | |
RegionModule (ImageType *_data, float _weight=1.f, bool _adaptive=true) | |
Constructor. | |
virtual | ~RegionModule () |
Destructor. | |
Modify/Access member data | |
void | set_data_term (ImageType &_data) |
Set the Image to segment. | |
Histogram * | hist_pos () |
Histogram of the positive region. | |
Histogram * | hist_neg () |
Histogram of the negative region. | |
Member functions | |
virtual float | value (const LevelSet &phi, const Index &ind) |
Value of the module at a point. | |
virtual float | energy (const LevelSet &phi, const Index &ind) |
Energy of the module at a point. | |
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. | |
void | init_histograms (const LevelSet &phi) |
compute the histograms of the image, in the area inside and outside the zero level set | |
void | update_histograms (const LevelSet &phi) |
update the histograms of the image, in the area inside and outside the zero level set | |
void | save_histograms (std::string evodir, int iter) |
save the histograms | |
Protected Attributes | |
Member data | |
ImageType * | m_data |
Image to segment. | |
Histogram * | m_hist_pos |
Histogram of the image in the positive region of the level set. | |
Histogram * | m_hist_neg |
Histogram of the image in the negative region of the level set. |
You can fix the histogram of each region by setting their 'adaptative' attribute to false
Definition at line 28 of file RegionModule.h.
RegionModule | ( | ImageType * | _data, | |
float | _weight = 1.f , |
|||
bool | _adaptive = true | |||
) | [inline] |
Constructor.
_data | image to segment |
_weight | weight of the module |
_adaptive | if the module is adaptive |
Definition at line 105 of file RegionModule.h.
00106 :SegmentationModule<DIM, Pixel>(_weight, _adaptive), m_data(_data), m_hist_pos(NULL), m_hist_neg(NULL) 00107 { }