Public Member Functions
mfpf_vec_cost Class Reference

Cost functions to evaluate vector of pixel samples. More...

#include <mfpf_vec_cost.h>

Inheritance diagram for mfpf_vec_cost:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 mfpf_vec_cost ()
 Dflt ctor.
virtual ~mfpf_vec_cost ()
 Destructor.
virtual double evaluate (const vnl_vector< double > &v)=0
 Evaluate function given vector.
virtual void get_average (vnl_vector< double > &v) const =0
 Return a vector which is the most likely expected vector.
short version_no () const
 Version number for I/O.
virtual vcl_string is_a () const
 Name of the class.
virtual mfpf_vec_costclone () const =0
 Create a copy on the heap and return base class pointer.
virtual void print_summary (vcl_ostream &os) const =0
 Print class to os.
virtual void b_write (vsl_b_ostream &bfs) const =0
 Save class to binary file stream.
virtual void b_read (vsl_b_istream &bfs)=0
 Load class from binary file stream.

Detailed Description

Cost functions to evaluate vector of pixel samples.

Derived functions return some form of sum of differences from a mean, or Mahalanobis type measure. Perfect match returns zero, imperfect matches return positive numbers.

Definition at line 17 of file mfpf_vec_cost.h.


Constructor & Destructor Documentation

mfpf_vec_cost::mfpf_vec_cost ( )

Dflt ctor.

Definition at line 14 of file mfpf_vec_cost.cxx.

mfpf_vec_cost::~mfpf_vec_cost ( ) [virtual]

Destructor.

Definition at line 22 of file mfpf_vec_cost.cxx.


Member Function Documentation

virtual void mfpf_vec_cost::b_read ( vsl_b_istream bfs) [pure virtual]

Load class from binary file stream.

Implemented in mfpf_log_lin_class_cost, mfpf_sad_vec_cost, and mfpf_ssd_vec_cost.

virtual void mfpf_vec_cost::b_write ( vsl_b_ostream bfs) const [pure virtual]

Save class to binary file stream.

Implemented in mfpf_log_lin_class_cost, mfpf_sad_vec_cost, and mfpf_ssd_vec_cost.

virtual mfpf_vec_cost* mfpf_vec_cost::clone ( ) const [pure virtual]

Create a copy on the heap and return base class pointer.

Implemented in mfpf_log_lin_class_cost, mfpf_sad_vec_cost, and mfpf_ssd_vec_cost.

virtual double mfpf_vec_cost::evaluate ( const vnl_vector< double > &  v) [pure virtual]

Evaluate function given vector.

Implemented in mfpf_log_lin_class_cost, mfpf_sad_vec_cost, and mfpf_ssd_vec_cost.

virtual void mfpf_vec_cost::get_average ( vnl_vector< double > &  v) const [pure virtual]

Return a vector which is the most likely expected vector.

I.e., return the mean for a statistical model. Used when displaying results

Implemented in mfpf_log_lin_class_cost, mfpf_sad_vec_cost, and mfpf_ssd_vec_cost.

vcl_string mfpf_vec_cost::is_a ( ) const [virtual]

Name of the class.

Reimplemented in mfpf_log_lin_class_cost, mfpf_sad_vec_cost, and mfpf_ssd_vec_cost.

Definition at line 39 of file mfpf_vec_cost.cxx.

virtual void mfpf_vec_cost::print_summary ( vcl_ostream &  os) const [pure virtual]

Print class to os.

Implemented in mfpf_log_lin_class_cost, mfpf_sad_vec_cost, and mfpf_ssd_vec_cost.

short mfpf_vec_cost::version_no ( ) const

Version number for I/O.

Reimplemented in mfpf_log_lin_class_cost, mfpf_sad_vec_cost, and mfpf_ssd_vec_cost.

Definition at line 30 of file mfpf_vec_cost.cxx.


The documentation for this class was generated from the following files: