Declarations for generic tools not depending on libraries such as OpenCV, PCL and ROS.
More...
Defines |
| #define | USE_CLAHE 0 |
Typedefs |
typedef std::pair< unsigned
int, unsigned int > | mypair |
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 | calcParameters (const vector< double > &v, double &mean, double &stdev) |
| | Calculate the mean and standard deviation of a vector of doubles.
|
| bool | comparator (const mypair &l, const mypair &r) |
| 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.
|
| double | distBetweenPts (cv::Point3d &P1, cv::Point3d &P2) |
| | Distance between two 3D points in double format.
|
| double | distBetweenPts (cv::Point &P1, cv::Point &P2) |
| | Calculates the distance between two "Point" points.
|
| double | distBetweenPts2f (cv::Point2f &P1, cv::Point2f &P2) |
| | Calculates the distance between two "Point2f" points.
|
| 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.
|
| void | findLinearModel (double *x, double *y, int termsToConsider, double &m, double &c) |
| double | findMinimumSeparation (vector< cv::Point2f > &pts) |
| | Finds the minimum separation between any two points in a set.
|
| double | getInterpolatedVal (const cv::Mat &img, cv::Point2f &coord) |
| void | getNextCombo (vector< unsigned int > ¤tIndices, int r, int n) |
| | Gets next possible combination for an exhaustive combinatorial search.
|
| cv::Scalar | getRandomColour () |
| double | lookupValue (double xi, double yi, double maxVal, const cv::Mat &lookupMat) |
| bool | matricesAreEqual (cv::Mat &mat1, cv::Mat &mat2) |
| cv::Point2f | meanPoint (cv::Point2f &P1, cv::Point2f &P2) |
| | Generates a point that's half way in between the two input points.
|
| double | perpDist (cv::Point2f &P1, cv::Point2f &P2, cv::Point2f &P3) |
| | Calculates the perpindicular distance between a line (P1 to P2) and a point (P3)
|
| void | randomSelection (vector< unsigned int > &src, vector< unsigned int > &dst, unsigned int max) |
| void | readPoints (const char *filename, vector< cv::Point2f > &pts) |
| void | redistortPoints (const vector< cv::Point2f > &src, vector< cv::Point2f > &dst, const cv::Mat &cameraMatrix, const cv::Mat &distCoeffs, const cv::Mat &newCamMat=cv::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< cv::Point2f > &pts) |
Declarations for generic tools not depending on libraries such as OpenCV, PCL and ROS.
Definition in file tools.hpp.