#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.
|
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.
00076 {
00077 a.converge(gradient, *this);
00078 }
|
|
Return the snake energy. This is not algorithm-dependant.
Definition at line 59 of file snakes_base.hxx. References oln::snakes::segment< image_type >::energy().
00060 {
00061 return s.energy(gradient);
00062 }
|
|
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.
00068 { 00069 return a.update_snake(gradient, *this); 00070 } |