$search
Declarations for generic tools not depending on libraries such as OpenCV, PCL and ROS. More...
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <unistd.h>
#include <getopt.h>
#include <iostream>
#include <fstream>
#include <sys/stat.h>
#include <dirent.h>
#include <sstream>
#include <string>
#include <string.h>
#include <assert.h>
#include <fcntl.h>
#include <errno.h>
#include <malloc.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <limits.h>
#include <termios.h>
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/gpu/gpu.hpp"
#include <opencv2/video/video.hpp>
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 > ¤tIndices, 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=Mat::eye(3, 3, CV_64FC1)) |
Redistorts points using an established distortion model. | |
double | timeElapsedMS (struct timeval &timer, bool reset=true) |
Calculates time elapsed since the last time the timer was reset. | |
void | writePoints (const char *filename, const vector< Point2f > &pts) |
Declarations for generic tools not depending on libraries such as OpenCV, PCL and ROS.
Definition in file tools.hpp.
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 | |||
) |
void convert_byte_to_binary_string | ( | void * | src, | |
char * | dst | |||
) |
void convertUcharToBinary | ( | unsigned char | val, | |
int * | binaryArray | |||
) |
int countElementsInFolder | ( | const char * | folderName, | |
vector< string > & | elementNames, | |||
int | elementType | |||
) |
long long int factorial | ( | int | num | ) |
double findEquivalentProbabilityScore | ( | double * | values, | |
int | quantity, | |||
double | prob | |||
) |
double getInterpolatedVal | ( | const Mat & | img, | |
Point2f & | coord | |||
) |
void getNextCombo | ( | vector< unsigned int > & | currentIndices, | |
int | r, | |||
int | n | |||
) |
double lookupValue | ( | double | xi, | |
double | yi, | |||
double | maxVal, | |||
const Mat & | lookupMat | |||
) |
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 = Mat::eye(3, 3, CV_64FC1) | |||
) |
double timeElapsedMS | ( | struct timeval & | timer, | |
bool | reset = true | |||
) |