#include <energies.hh>
Inheritance diagram for oln::snakes::energy< I >:

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? | |
Definition at line 38 of file energies.hh.
|
||||||||||||||||||||||||
|
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 }
|
1.3.6-20040222