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 <opencv2/calib3d/calib3d_c.h>
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

 alvar
 Main ALVAR namespace.
 

Typedefs

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

Functions

double ALVAR_EXPORT alvar::angle (CvPoint *A, CvPoint *B, CvPoint *C, CvPoint *D, int isDirectionDependent)
 Computes the angle between lines AB and CD. More...
 
int ALVAR_EXPORT alvar::cross (CvPoint *A, CvPoint *B, CvPoint *C)
 Computes the cross product AB x AC. More...
 
template<class C >
double ALVAR_EXPORT alvar::Deg2Rad (const C &v)
 Converts an angle from degrees to radians. More...
 
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. More...
 
double ALVAR_EXPORT alvar::distance (CvPoint *A, CvPoint *B)
 Compute the distance from A to B. More...
 
int ALVAR_EXPORT alvar::dot (CvPoint *A, CvPoint *B, CvPoint *C)
 Computes dot product AB.BC. More...
 
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). More...
 
void ALVAR_EXPORT alvar::FitCVEllipse (const std::vector< PointDouble > &points, CvBox2D &ellipse_box)
 Uses OpenCV routine to fit ellipse to a vector of points. More...
 
double ALVAR_EXPORT alvar::Limit (double val, double min_val, double max_val)
 Limits a number to between two values. More...
 
double ALVAR_EXPORT alvar::linePointDist (CvPoint *A, CvPoint *B, CvPoint *C, bool isSegment)
 Computes the distance from point C to line (segment) AB. More...
 
void ALVAR_EXPORT alvar::out_matrix (const CvMat *m, const char *name)
 Output OpenCV matrix for debug purposes. More...
 
template<class PointType >
double alvar::PointSquaredDistance (PointType p1, PointType p2)
 Returns the squared distance of two points. More...
 
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. More...
 
template<class C >
double ALVAR_EXPORT alvar::Rad2Deg (const C &v)
 Converts an angle from radians to degrees. More...
 
template<class C >
int ALVAR_EXPORT alvar::Sign (const C &v)
 Returns the sign of a number. More...
 
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 Mon Jun 10 2019 12:47:04