#include <FastMarching.h>
Inheritance diagram for FastMarching:
Member datas | |
Pixel | m_big |
Maximal value of the type Pixel. | |
ImageType * | m_phi |
Image of the datas. | |
Member functions | |
Pixel | _get_value (const Index &ind) const |
Get the value of a point from its coordinate, with test on its state and with the correct sign. | |
virtual Pixel | _update_value (const Index &ind) const=0 |
Compute the value of a point from its neighbors. | |
bool | _solve_trinome (const Pixel a, const Pixel b, const Pixel c, Pixel &sol_max, Pixel &sol_min) const |
Solve a second degree trinom. | |
Public Types | |
enum | eState { eAlive = 0, eTrial = 1, eFar = 2, eForbidden = 3 } |
State of a point in the Fast Marching. More... | |
typedef BaseImage< DIM, unsigned > | base |
typedef BaseImage< DIM, Pixel > | ImageType |
typedef base::Index | Index |
typedef PriorityQueue< Index > | CoordQueue |
typedef CoordQueue::QueuePosition | QueuePosition |
typedef BaseImage< DIM, QueuePosition > | ImageQueuePosition |
Public Member Functions | |
Constructors - Destructor - Init | |
FastMarching () | |
Default constructor. | |
FastMarching (ImageType *_phi) | |
Construct the Fast Marching from an image object. | |
virtual | ~FastMarching () |
Destructor. | |
void | init (ImageType &_phi) |
Initialization of the datas. | |
Access/Modif the Alive-Trial-Forbidden points | |
unsigned | nb_alive_points () const |
Number of points in the narrow band. | |
const Index & | get_alive_point (unsigned i) |
Get the point of indice i in the narrow band. | |
void | add_alive_point (const Index &ind) |
Add a alive point (seed point). | |
void | add_trial_point (const Index &ind) |
Add a trial point. | |
void | add_forbidden_point (const Index &ind) |
Add a forbidden point. | |
void | init_trial_from_alive () |
Initialization of the trial points from the alive point. | |
void | clear () |
Remove all the Alive-Trial-Forbidden points, set all points to Far. | |
Launch the fast marching | |
void | run () |
Launch the fast marching with no stop condition (computation on the whole image). | |
void | run (Pixel _limit) |
Launch the fast marching with stop when the value 'limit' is reached. |
Definition at line 26 of file FastMarching.h.
enum eState |
State of a point in the Fast Marching.
Definition at line 38 of file FastMarching.h.
00038 { eAlive=0, eTrial=1, eFar=2, eForbidden=3 } eState;