#include <snakes_base.hh>
Collaboration diagram for oln::snakes::snake< algorithm >:
Public Types | |
typedef algorithm::image_type | image_type |
typedef image_type::point_type | point_type |
Public Member Functions | |
snake (const image_type &image, std::list< point_type > initial_contour, ntg::float_s alpha, ntg::float_s beta, ntg::float_s gamma, ntg::float_s khi) | |
std::list< point_type > | contour (void) const |
Return the points of the snake. | |
ntg::float_s | energy (void) const |
int | update_snake (void) |
void | converge (void) |
Friends | |
int | algorithm::update_snake (const typename algorithm::image_type &, snake &) |
void | algorithm::converge (const typename algorithm::image_type &, snake &) |
std::ostream & | operator<< (std::ostream &, const snake &) |
FIXME: Add doc & test.
Definition at line 44 of file snakes_base.hh.
ntg::float_s oln::snakes::snake< algorithm >::energy | ( | void | ) | const |
Return the snake energy. This is not algorithm-dependant.
Definition at line 59 of file snakes_base.hxx.
int oln::snakes::snake< algorithm >::update_snake | ( | void | ) | [inline] |
Calling this method causes the snake to execute one step. If the method is not iterative, it should fail to compile.
Definition at line 67 of file snakes_base.hxx.
void oln::snakes::snake< algorithm >::converge | ( | void | ) | [inline] |
Calling this method causes the snake to converge. It does so by delegating the method to the algorithm.
Definition at line 75 of file snakes_base.hxx.