Classes | Functions
contrib/mul/mfpf/mfpf_pose.h File Reference

Defines position and scale/orientation of an object. More...

#include <vsl/vsl_binary_io.h>
#include <vcl_iostream.h>
#include <vcl_cstdlib.h>
#include <vcl_cmath.h>
#include <vcl_vector.h>
#include <vgl/vgl_point_2d.h>
#include <vgl/vgl_vector_2d.h>

Go to the source code of this file.

Classes

class  mfpf_pose
 Feature point, scale and orientation. More...

Functions

bool operator== (const mfpf_pose &p1, const mfpf_pose &p2)
bool operator!= (const mfpf_pose &p1, const mfpf_pose &p2)
double mfpf_max_sqr_diff (const mfpf_pose &p1, const mfpf_pose &p2, double r)
 Return a measure of difference of position for two poses.
vcl_ostream & operator<< (vcl_ostream &os, const mfpf_pose &p)
mfpf_pose operator* (const mfpf_pose &p1, const mfpf_pose &p2)
 Treating poses as transformations, return p12=p1.p2.
void vsl_b_write (vsl_b_ostream &bfs, const mfpf_pose &p)
void vsl_b_read (vsl_b_istream &bfs, mfpf_pose &p)
void vsl_b_write (vsl_b_ostream &bfs, const vcl_vector< mfpf_pose > &p)
 Write vector of feature points to stream.
void vsl_b_read (vsl_b_istream &bfs, vcl_vector< mfpf_pose > &p)
 Read in vector of feature points from stream.

Detailed Description

Defines position and scale/orientation of an object.

Author:
Tim Cootes

Definition in file mfpf_pose.h.


Function Documentation

double mfpf_max_sqr_diff ( const mfpf_pose p1,
const mfpf_pose p2,
double  r 
) [inline]

Return a measure of difference of position for two poses.

Object assumed to have radius r. Returns estimate of square of largest difference in position for a point on the object (typically an extremal point)

Definition at line 127 of file mfpf_pose.h.

bool operator!= ( const mfpf_pose p1,
const mfpf_pose p2 
) [inline]

Definition at line 119 of file mfpf_pose.h.

mfpf_pose operator* ( const mfpf_pose p1,
const mfpf_pose p2 
) [inline]

Treating poses as transformations, return p12=p1.p2.

I.e., p12(x) = p1(p2(x))

Definition at line 147 of file mfpf_pose.h.

vcl_ostream& operator<< ( vcl_ostream &  os,
const mfpf_pose p 
) [inline]

Definition at line 137 of file mfpf_pose.h.

bool operator== ( const mfpf_pose p1,
const mfpf_pose p2 
) [inline]

Definition at line 109 of file mfpf_pose.h.

void vsl_b_read ( vsl_b_istream bfs,
mfpf_pose p 
) [inline]

Definition at line 163 of file mfpf_pose.h.

void vsl_b_read ( vsl_b_istream bfs,
vcl_vector< mfpf_pose > &  p 
) [inline]

Read in vector of feature points from stream.

Definition at line 195 of file mfpf_pose.h.

void vsl_b_write ( vsl_b_ostream bfs,
const mfpf_pose p 
) [inline]

Definition at line 153 of file mfpf_pose.h.

void vsl_b_write ( vsl_b_ostream bfs,
const vcl_vector< mfpf_pose > &  p 
) [inline]

Write vector of feature points to stream.

Definition at line 185 of file mfpf_pose.h.