oln::snakes::snake< algorithm > Class Template Reference

#include <snakes_base.hh>

Collaboration diagram for oln::snakes::snake< algorithm >:

Collaboration graph
[legend]
List of all members.

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 &)

Detailed Description

template<class algorithm>
class oln::snakes::snake< algorithm >

Snake algorithm.

Todo:
FIXME: Do not work due to the function node::energy.

FIXME: Add doc & test.

Definition at line 44 of file snakes_base.hh.


Member Function Documentation

template<class algorithm>
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.

00076     {
00077       a.converge(gradient, *this);
00078     }

template<class algorithm>
ntg::float_s oln::snakes::snake< algorithm >::energy void   )  const
 

Return the snake energy. This is not algorithm-dependant.

Todo:
FIXME: Do not work due to the function node::energy

Definition at line 59 of file snakes_base.hxx.

References oln::snakes::segment< image_type >::energy().

00060     {
00061       return s.energy(gradient);
00062     }

template<class algorithm>
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.

00068     {
00069       return a.update_snake(gradient, *this);
00070     }


The documentation for this class was generated from the following files:
Generated on Thu Apr 15 20:17:05 2004 for Olena by doxygen 1.3.6-20040222