oln::snakes::energy< I > Class Template Reference

#include <energies.hh>

Inheritance diagram for oln::snakes::energy< I >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 energy ()
 energy (void *)
ntg::float_s compute (const I &, const node< I > &, const node< I > &, const node< I > &)

Static Public Member Functions

static void * cookie ()
 FIXME: What is that?

Classes

struct  user_defined_external_energy_functor

Detailed Description

template<class I>
class oln::snakes::energy< I >

Base class for energy.

Definition at line 41 of file energies.hh.


Member Function Documentation

template<class I>
ntg::float_s oln::snakes::energy< I >::compute ( const I &  ,
const node< I > &  ,
const node< I > &  ,
const node< I > &   
) [inline]

Return the energy.

The first arg is the gradient of the image; the 3 nodes are the previous, the current and the next node.

Reimplemented in oln::snakes::continuity_energy< I >, oln::snakes::curvature_energy< I >, and oln::snakes::image_energy< I >.

Definition at line 54 of file energies.hh.

00055       {
00056         // This is intended to cause an error. The user must define a
00057         // member function named `compute()' for each external energy,
00058         // otherwise the following method will be compiled and cause an
00059         // error.
00060         user_defined_external_energy_functor::compute();
00061         return 0.f;
00062       }


The documentation for this class was generated from the following file:
Generated on Tue Feb 20 20:29:18 2007 for Olena by  doxygen 1.5.1