User Documentation
Centre for Vision, Speech & Signal Processing
DEVELOP IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
SimplePairwiseCostC::SimplePairwiseCostC(TraceC,int,int)
SimplePairwiseCostC::~SimplePairwiseCostC(void)
SimplePairwiseCostC::Energy(int,int,int,int)
SimplePairwiseCostC::Energy(const HardAssignC &)
SimplePairwiseCostC::Energy(const SoftAssignC &)
SimplePairwiseCostC::GetMFTSupport(SoftAssignC &,int,const SoftAssignC &)
SimplePairwiseCostC::GetMFTSupport(const SoftAssignC &)
SimplePairwiseCostC::GetGradAssSupport(SoftAssignC &,int,const SoftAssignC &)
SimplePairwiseCostC::GetGradAssSupport(const SoftAssignC &)
SimplePairwiseCostC::GetEnergy(int,int,const HardAssignC &)
SimplePairwiseCostC::LoadEnergy(int,const HardAssignC &)
BaseCostC::TrapUndefinedVirtual(const char *)
BaseCostC::Energy(int,int,int,int)
BaseCostC::Energy(const HardAssignC &)
BaseCostC::Energy(const SoftAssignC &)
BaseCostC::GetMFTSupport(SoftAssignC &,int,const SoftAssignC &)
BaseCostC::GetMFTSupport(const SoftAssignC &)
BaseCostC::GetGradAssSupport(SoftAssignC &,int,const SoftAssignC &)
BaseCostC::GetGradAssSupport(const SoftAssignC &)
BaseCostC::GetEnergy(int,int,const HardAssignC &)
BaseCostC::LoadEnergy(int,const HardAssignC &)
TraceC::TraceC(int,ostream &)
TraceC::~TraceC(void)
TraceC::TraceC(const TraceC &)
SimplePairwiseCostC
 
include "amma/BaseCost.hh"
User Level:Default
Library:CombOpt
Example: doNumClassComb.cc
Section:default.Andrew Stoddart
In Scope:std

Comments:
------------------------------------------------------------------------- ------------------------------------------------------------------------- This is a simple and useful form of Cost function, which should be used when the cost is derived from a pairwise Energy(i,j,a,b) The huge advantage is that only 1 virtual function is left to the user ------------------------------------------------------------------------- -------------------------------------------------------------------------

Parent Classes: Derived Classes: Variables:
Methods:
SimplePairwiseCostC(TraceC t = TraceC(),int _nobjs = 0,int _nlabs = 0)
Constructor

~SimplePairwiseCostC()
virtual destructor You must supply this function -----------------------------

double Energy(int i,int j,int a,int b)
return the pairwise energy Thes functions are taken care of now for you --------------------------------------------

double Energy(const HardAssignC & r)

double Energy(const SoftAssignC & r)
return the energy of the overall labelling It is assumed that this is slower and to be used sparingly MFTCostC stuff --------------

void GetMFTSupport(SoftAssignC & q,int i,const SoftAssignC & work)
returns the support for one object

SoftAssignC GetMFTSupport(const SoftAssignC & work)
returns the support GradAssCostC stuff ------------------

void GetGradAssSupport(SoftAssignC & q,int i,const SoftAssignC & work)
returns the support for one object

SoftAssignC GetGradAssSupport(const SoftAssignC & work)
returns the support SACostC stuff -------------

double GetEnergy(int i,int a,const HardAssignC & r)
get the energy for object i with label a, or at least the part of the energy affected by changing labels on object i only

RealSArray1dC LoadEnergy(int i,const HardAssignC & r)
Load up the array work with the energies for each label of object i given global assignment r

void TrapUndefinedVirtual(const char * fname)
the crude but efective way to catch virtual functions that have not been overridden

double Energy(int i,int j,int a,int b)
return the pairwise energy

double Energy(const HardAssignC & r)
return the energy of the overall labelling It is assumed that this is slower and to be used sparingly

double Energy(const SoftAssignC & r)
return the energy of the overall labelling It is assumed that this is slower and to be used sparingly Mean Field Theory -----------------

void GetMFTSupport(SoftAssignC & q,int i,const SoftAssignC & work)
returns the support for one object

SoftAssignC GetMFTSupport(const SoftAssignC & work)
returns the support Graduated assignment --------------------

void GetGradAssSupport(SoftAssignC & q,int i,const SoftAssignC & work)
returns the support for one object

SoftAssignC GetGradAssSupport(const SoftAssignC & work)
returns the support Simulated Annealing -------------------

double GetEnergy(int i,int a,const HardAssignC & r)
get the energy for object i with label a, or at least the part of the energy affected by changing labels on object i only

RealSArray1dC LoadEnergy(int i,const HardAssignC & r)
Load up the array work with the energies for each label of object i given global assignment r

#include "amma/Trace.hh"
Inline TraceC(int tl = NoTrace,ostream & os = cout)
Constructor

Inline ~TraceC()
Destructor

Inline TraceC(const TraceC & t)
Copy Constructor


Documentation by CxxDoc: Tue Mar 20 10:48:08 2001