Vista     Main Page   Class List   Function List   File List   Examples  


FieldVector.h File Reference

Definition of field vectors input/output functions. More...

#include <stdio.h>
#include <CMotion2DModel.h>
#include <CMotion2DImage.h>

Go to the source code of this file.

Functions

bool WriteFieldVector (CMotion2DModel &model, CMotion2DImage< unsigned char > &S, unsigned char label, const char *filename)
bool WriteFieldVector (CMotion2DModel &model, CMotion2DImage< short > &S, short label, const char *filename)


Detailed Description

Definition of field vectors input/output functions.


Function Documentation

bool WriteFieldVector CMotion2DModel   model,
CMotion2DImage< short > &    S,
short    label,
const char *    filename
 

Write the corresponding motion model optic flow field in a file which name is specified by filename. The optic flow field is only computed on the estimation support S. The estimation support corresponds to the pixels of S whose values are equal to label.

Parameters:
model  Estimated 2D parametric motion model.
S  refers to the estimation support . In other terms, S indicates which pixels of the image are taken into account in the estimation process. It usually consists of the whole image. In that case, S must be set to label. But, if required, it can also be restricted to a specific area of the image. In that case, all the pixels belonging to this area must be set to label. The other pixels must be set to another value than label.
label  Value of area where the motion model was estimated.
filename  Name of the file containing the optic flow field.
Returns:
false if an error occurs, or true otherwise.

bool WriteFieldVector CMotion2DModel   model,
CMotion2DImage< unsigned char > &    S,
unsigned char    label,
const char *    filename
 

Write the corresponding motion model optic flow field in a file which name is specified by filename. The optic flow field is only computed on the estimation support S. The estimation support corresponds to the pixels of S whose values are equal to label.

Parameters:
model  Estimated 2D parametric motion model.
S  refers to the estimation support . In other terms, S indicates which pixels of the image are taken into account in the estimation process. It usually consists of the whole image. In that case, S must be set to label. But, if required, it can also be restricted to a specific area of the image. In that case, all the pixels belonging to this area must be set to label. The other pixels must be set to another value than label.
label  Value of area where the motion model was estimated.
filename  Name of the file containing the optic flow field.
Returns:
false if an error occurs, or true otherwise.
Examples:
Motion2D.cpp.


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