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

Public Types | |
|
typedef SegmentationModule< DIM, Pixel > | base |
| typedef base::LevelSet | LevelSet |
| typedef base::Index | Index |
|
typedef DericheFilter< DIM, PixelImage > | DericheFilter |
| typedef BaseImage< DIM, PixelImage > | ImageType |
| typedef BaseImage< DIM, float > | ImageFloat |
Public Member Functions | |
Constructors - Destructor | |
| GeodesicActiveContourModule (ImageType *_data, float _weight=1.f, float _v=0.f, float _smooth=3.0f) | |
| Default constructor. | |
| virtual | ~GeodesicActiveContourModule () |
| Destructor. | |
Modify/Access member data | |
| void | compute_metric (ImageType *_data, float _smooth=3.0f) |
| Compute the metric of the riemanian space from the image. | |
| void | set_metric (const ImageFloat &g, ImageFloat *g_deriv=NULL) |
| Set the metric of the riemanian space, and optionally its directional derivative. | |
| float & | balloon () |
| Balloon force. | |
| const ImageFloat & | metric () |
| Metric of the riemanian space. | |
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 | save_result (const LevelSet &phi, std::string evodir, int iter) |
| Save results depending on the module data. | |
Protected Member Functions | |
| float | _g (float v, float p) |
Protected Attributes | |
Member data | |
| ImageFloat | m_g |
| Metric of the riemanian space. | |
| ImageFloat | m_g_deriv [DIM] |
| Directional derivatives of the metric. | |
| float | m_v |
| Balloon force. | |
Definition at line 26 of file GeodesicActiveContourModule.h.
| GeodesicActiveContourModule | ( | ImageType * | _data, | |
| float | _weight = 1.f, |
|||
| float | _v = 0.f, |
|||
| float | _smooth = 3.0f | |||
| ) | [inline] |
Default constructor.
| _data | image whose metric will be computed |
| _weight | weight of the module |
| _v | Balloon force |
| _smooth | amount of smoothness on the image |
Definition at line 106 of file GeodesicActiveContourModule.h.
References GeodesicActiveContourModule::compute_metric(), and GeodesicActiveContourModule::m_g_deriv.
00107 :SegmentationModule<DIM, Pixel>(_weight, false), m_g(_data->shape()), m_v(_v) 00108 { 00109 for (int i=0 ; i<DIM ; i++) 00110 m_g_deriv[i].resize(_data->shape()); 00111 00112 compute_metric(_data, _smooth); 00113 }