$search

tools.cpp File Reference

Definitions for generic tools not depending on libraries such as OpenCV, PCL and ROS. More...

#include "tools.hpp"
Include dependency graph for tools.cpp:

Go to the source code of this file.

Functions

void addUniqueToVector (vector< unsigned int > &dst, vector< unsigned int > &src)
double asymmetricGaussianValue (double score, double mean, double loVar, double hiVar)
double calcLinePerpDistance (double *line1, double *line2)
 Calculates perpendicular distance between two "parallel" lines.
void convert_byte_to_binary_string (void *src, char *dst)
 Converts a raw byte as an 8-bit character array of 1s and 0s.
void convertUcharToBinary (unsigned char val, int *binaryArray)
int countElementsInFolder (const char *folderName, vector< string > &elementNames, int elementType)
 Counts and returns a list of all specified elements within a folder.
long long int factorial (int num)
 Calculates Factorial of an integer.
double findEquivalentProbabilityScore (double *values, int quantity, double prob)
 Selects the score which is minimally better than a specified proportion of all scores.
double getInterpolatedVal (const Mat &img, Point2f &coord)
void getNextCombo (vector< unsigned int > &currentIndices, int r, int n)
 Gets next possible combination for an exhaustive combinatorial search.
Scalar getRandomColour ()
double lookupValue (double xi, double yi, double maxVal, const Mat &lookupMat)
bool matricesAreEqual (Mat &mat1, Mat &mat2)
void randomSelection (vector< unsigned int > &src, vector< unsigned int > &dst, unsigned int max)
void readPoints (const char *filename, vector< Point2f > &pts)
void redistortPoints (const vector< Point2f > &src, vector< Point2f > &dst, const Mat &cameraMatrix, const Mat &distCoeffs, const Mat &newCamMat)
 Redistorts points using an established distortion model.
double timeElapsedMS (struct timeval &timer, bool reset)
 Calculates time elapsed since the last time the timer was reset.
void writePoints (const char *filename, const vector< Point2f > &pts)

Detailed Description

Definitions for generic tools not depending on libraries such as OpenCV, PCL and ROS.

Definition in file tools.cpp.


Function Documentation

void addUniqueToVector ( vector< unsigned int > &  dst,
vector< unsigned int > &  src 
)

Definition at line 533 of file tools.cpp.

double asymmetricGaussianValue ( double  score,
double  mean,
double  loVar,
double  hiVar 
)

Definition at line 510 of file tools.cpp.

double calcLinePerpDistance ( double *  line1,
double *  line2 
)

Calculates perpendicular distance between two "parallel" lines.

Definition at line 555 of file tools.cpp.

void convert_byte_to_binary_string ( void *  src,
char *  dst 
)

Converts a raw byte as an 8-bit character array of 1s and 0s.

Definition at line 664 of file tools.cpp.

void convertUcharToBinary ( unsigned char  val,
int *  binaryArray 
)

Definition at line 214 of file tools.cpp.

int countElementsInFolder ( const char *  folderName,
vector< string > &  elementNames,
int  elementType 
)

Counts and returns a list of all specified elements within a folder.

Definition at line 225 of file tools.cpp.

long long int factorial ( int  num  ) 

Calculates Factorial of an integer.

Definition at line 569 of file tools.cpp.

double findEquivalentProbabilityScore ( double *  values,
int  quantity,
double  prob 
)

Selects the score which is minimally better than a specified proportion of all scores.

Definition at line 626 of file tools.cpp.

double getInterpolatedVal ( const Mat &  img,
Point2f &  coord 
)

Definition at line 82 of file tools.cpp.

void getNextCombo ( vector< unsigned int > &  currentIndices,
int  r,
int  n 
)

Gets next possible combination for an exhaustive combinatorial search.

Definition at line 581 of file tools.cpp.

Scalar getRandomColour (  ) 

Definition at line 563 of file tools.cpp.

double lookupValue ( double  xi,
double  yi,
double  maxVal,
const Mat &  lookupMat 
)

Definition at line 59 of file tools.cpp.

bool matricesAreEqual ( Mat &  mat1,
Mat &  mat2 
)

Definition at line 394 of file tools.cpp.

void randomSelection ( vector< unsigned int > &  src,
vector< unsigned int > &  dst,
unsigned int  max 
)

Definition at line 495 of file tools.cpp.

void readPoints ( const char *  filename,
vector< Point2f > &  pts 
)

Definition at line 20 of file tools.cpp.

void redistortPoints ( const vector< Point2f > &  src,
vector< Point2f > &  dst,
const Mat &  cameraMatrix,
const Mat &  distCoeffs,
const Mat &  newCamMat 
)

Redistorts points using an established distortion model.

*

*

Definition at line 271 of file tools.cpp.

double timeElapsedMS ( struct timeval &  timer,
bool  reset 
)

Calculates time elapsed since the last time the timer was reset.

Definition at line 372 of file tools.cpp.

void writePoints ( const char *  filename,
const vector< Point2f > &  pts 
)

Definition at line 7 of file tools.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


thermalvis
Author(s): Stephen Vidas
autogenerated on Tue Mar 5 12:25:44 2013