Classes | Namespaces | Typedefs | Functions | Variables
Util.h File Reference

This file implements generic utility functions and a serialization interface. More...

#include "Alvar.h"
#include "AlvarException.h"
#include <vector>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <cxcore.h>
#include <cv.h>
#include <cmath>
#include <map>
Include dependency graph for Util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  alvar::Histogram
 Class for N-dimensional Histograms. More...
class  alvar::HistogramSubpixel
 N-dimensional Histograms calculating also the subpixel average for max bin. More...
struct  alvar::Index
 Class for N-dimensional index to be used e.g. with STL maps. More...
struct  alvar::Point< C, D >
 Simple Point class meant to be inherited from OpenCV point-classes. For example: Point<CvPoint2D64f> p. More...
class  alvar::Serialization
 Class for serializing class content to/from file or std::iostream. More...

Namespaces

namespace  alvar
 

Main ALVAR namespace.


Typedefs

typedef ALVAR_EXPORT Point
< CvPoint2D64f
alvar::PointDouble
 The default double point type.
typedef ALVAR_EXPORT Point
< CvPoint > 
alvar::PointInt
 The default integer point type.

Functions

double ALVAR_EXPORT alvar::angle (CvPoint *A, CvPoint *B, CvPoint *C, CvPoint *D, int isDirectionDependent)
 Computes the angle between lines AB and CD.
int ALVAR_EXPORT alvar::cross (CvPoint *A, CvPoint *B, CvPoint *C)
 Computes the cross product AB x AC.
template<class C >
double ALVAR_EXPORT alvar::Deg2Rad (const C &v)
 Converts an angle from degrees to radians.
template<class C >
int ALVAR_EXPORT alvar::diff (const std::vector< C > &v, std::vector< C > &ret)
 Calculates the difference between the consecutive vector elements.
double ALVAR_EXPORT alvar::distance (CvPoint *A, CvPoint *B)
 Compute the distance from A to B.
int ALVAR_EXPORT alvar::dot (CvPoint *A, CvPoint *B, CvPoint *C)
 Computes dot product AB.BC.
int ALVAR_EXPORT alvar::exp_filt2 (std::vector< double > &v, std::vector< double > &ret, bool clamp)
int ALVAR_EXPORT alvar::find_zero_crossings (const std::vector< double > &v, std::vector< int > &corners, int offs=20)
 Finds zero crossings of given vector elements (sequence).
void ALVAR_EXPORT alvar::FitCVEllipse (const std::vector< PointDouble > &points, CvBox2D &ellipse_box)
 Uses OpenCV routine to fit ellipse to a vector of points.
double ALVAR_EXPORT alvar::Limit (double val, double min_val, double max_val)
 Limits a number to between two values.
double ALVAR_EXPORT alvar::linePointDist (CvPoint *A, CvPoint *B, CvPoint *C, bool isSegment)
 Computes the distance from point C to line (segment) AB.
void ALVAR_EXPORT alvar::out_matrix (const CvMat *m, const char *name)
 Output OpenCV matrix for debug purposes.
template<class PointType >
double alvar::PointSquaredDistance (PointType p1, PointType p2)
 Returns the squared distance of two points.
double ALVAR_EXPORT alvar::polyLinePointDist (CvPoint *PointList, int nPnts, CvPoint *C, int *index, int isClosedPolygon)
 Calculates minimum distance from Point C to Polygon whose points are in list PointList.
template<class C >
double ALVAR_EXPORT alvar::Rad2Deg (const C &v)
 Converts an angle from radians to degrees.
template<class C >
int ALVAR_EXPORT alvar::Sign (const C &v)
 Returns the sign of a number.
void alvar::STRCPY (char *to, size_t size, const char *src)

Variables

const double alvar::PI = 3.14159265

Detailed Description

This file implements generic utility functions and a serialization interface.

Definition in file Util.h.



ar_track_alvar
Author(s): Scott Niekum
autogenerated on Sat Dec 28 2013 16:46:16