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 (void *)
ntg::float_s compute (const I &, const node< I > &, const node< I > &, const node< I > &)

Static Public Member Functions

void * cookie ()
 FIXME: What is that?


Detailed Description

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

Base class for energy.

Definition at line 38 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 51 of file energies.hh.

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


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