#include <energies.hh>
Inheritance diagram for oln::snakes::energy< I >:
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 |
Definition at line 41 of file energies.hh.
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 }