Vista     Main Page   Class List   Function List   File List   Examples  


CMotion2D Class Reference

The CMotion2D class implements the Motion2D software. More...

List of all members.

Public Methods

 CMotion2D ()
 ~CMotion2D ()
void printHeaderResults (FILE *output, CMotion2DModel model, double multfactor)
void printResults (FILE *output, unsigned long i1, unsigned long i2, CMotion2DModel model, double support_size, unsigned nbsubsample, double multfactor)
void printVresResults (FILE *output, CMotion2DImage< float > &Vres, CMotion2DImage< unsigned char > &Map, string dpath, int frame)
int getoption (int argc, char **argv, char *pszValidOpts, char **ppszParam)
void getoptions (int argc, char **argv)
int main (int argc, char **argv)
void usage (char *name, char *badparam)
void getVres (CMotion2DImage< float > &, CMotion2DImage< unsigned char > &, int)
void free ()
unsigned getNbSubsample ()
CMotion2DModelgetMotion2DModel ()


Detailed Description

The CMotion2D class implements the Motion2D software.


Constructor & Destructor Documentation

CMotion2D::CMotion2D  
 

2D parametric motion estimator constructor.

CMotion2D::~CMotion2D  
 

Motion estimator destructor.


Member Function Documentation

void CMotion2D::free  
 

Free all the memory allocated for the image pyramids.

CMotion2DModel & CMotion2D::getMotion2DModel  
 

Returns:
The 2D parametric motion model.

unsigned CMotion2D::getNbSubsample  
 

Returns:
The number of subsampling applied to the image. If no subsampling is performed, this parameter is equal to zero.

int CMotion2D::getoption int    argc,
char **    argv,
char *    pszValidOpts,
char **    ppszParam
 

Get next command line option and parameter

Parameters:
argc  Count of command line arguments
argv  Array of command line argument strings
pszValidOpts  String of valid, case-sensitive option characters, a colon ':' following a given character means that option can take a parameter
ppszParam  Pointer to a pointer to a string for output
Returns:
  • If valid option is found, the character value of that option is returned, and *ppszParam points to the parameter if given, or is NULL if no param.
  • If standalone parameter (with no option) is found, 1 is returned, and *ppszParam points to the standalone parameter.
  • If option is found, but it is not in the list of valid options, -1 is returned, and *ppszParam points to the invalid argument When end of argument list is reached, 0 is returned, and *ppszParam is NULL.

void CMotion2D::getoptions int    argc,
char **    argv
 

Set the program options.

void CMotion2D::getVres CMotion2DImage< float > &    Vres,
CMotion2DImage< unsigned char > &    Map,
int    level
 

Computes the residual.

int CMotion2D::main int    argc,
char **    argv
 

Process the motion estimation.

void CMotion2D::printHeaderResults FILE *    output,
CMotion2DModel    model,
double    multfactor
 

Print the header in the result file.

void CMotion2D::printResults FILE *    output,
unsigned long    i1,
unsigned long    i2,
CMotion2DModel    model,
double    support_size,
unsigned    nbsubsample,
double    multfactor
 

Print the motion model parameters in the result file.

void CMotion2D::printVresResults FILE *    output,
CMotion2DImage< float > &    Vres,
CMotion2DImage< unsigned char > &    Map,
string    dpath,
int    frame
 

Save the residual map.

void CMotion2D::usage char *    name,
char *    badparam
 

Print the program options.


The documentation for this class was generated from the following files:
Motion2D is Copyright © 1995-2005 by Inria
This documentation was generated on 31 Jan 2005 by Fabien Spindler for Motion2D 1.3.11 using doxygen1.2.18 written by Dimitri van Heesch, © 1997-2005