|
Classes |
| struct | hugin_utils::GraphEdge |
| struct | hugin_utils::RemoveVisitor |
| | removes vertices from the set More...
|
| struct | hugin_utils::TrackVisitor |
| | remember/track all visited vertices More...
|
| struct | hugin_utils::TDiff2D< T > |
| class | hugin_utils::LMS_Solver |
| | Solve a linear least squares problem. More...
|
Typedefs |
| typedef std::vector< int > | AdjList |
| typedef std::vector< AdjList > | AdjListGraph |
| typedef TDiff2D< double > | FDiff2D |
Functions |
| void | sortd (int length, double *a, int *ind) |
| void | eig_jacobi (int n, double a[3][3], double v[3][3], double *d, int *ind, int *maxsweep, int *maxannil, double *epsilon) |
| | Implements jacobi eigenvalue/vector algorithm on a symmetric matrix stored as a 2 dimensional matrix a[n][n] and computes the eigenvectors in another globally allocated matrix v[n][n].
|
| void | findSubGraphs (AdjListGraph &graph, std::vector< int > &subgraphStart) |
| | find subgraphs
|
| template<class FUNCTOR> |
| void | traverseEdges (const AdjListGraph &graph, int startNode, FUNCTOR &visitor) |
| | traverse a graph, and run visitor on every vertice - vertice edge encounterd
|
| template<class FUNCTOR> |
| void | traverseVertices (const AdjListGraph &graph, int start, FUNCTOR &visitor) |
| | traverse graph vertices
|
| double | round (double x) |
| float | roundf (float x) |
| int | ceili (double x) |
| int | floori (double x) |
| template<class T> |
| int | roundi (T x) |
| int | isnan (double x) |
| template<class T> |
| T | simpleClipPoint (const T &point, const T &min, const T &max) |
| | clip a point to fit int [min, max] does not do a mathematical clipping, just sets p.x and p.y to the borders if they are outside.
|
| template<class T> |
| T | sqr (T t) |
| template<class T> |
| double | norm (T t) |
| template<class InputIterator1, class InputIterator2> |
| double | euclid_dist (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2) |
| | calculate squared Euclidean distance between two vectors.
|
| template<class InputIterator1, class InputIterator2, class T> |
| T | sqr_dist (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, T res) |
| | calculate squared Euclidean distance between two vectors.
|
| template<class POINT> |
| vigra::Rect2D | calcCircleROIFromPoints (const POINT &p1, const POINT &p2) |
| | calculate the bounding box of a circle that goes through both points.
|
| int | getCPUCount () |
| | return the CPU count. On error returns a cpu count of 0 or -1
|
| template<class str> |
| str | quoteStringInternal (const str &arg, const str "echar, const str &replacements) |
| | utility function; escapes characters in replacements with quotechar.
|
| template<class str> |
| str | quoteString (const str &arg) |
| | Try to escape special chars on windows and linux.
|
| template<class str> |
| str | quoteStringShell (const str &arg) |
| | Try to escape special chars in a string used by a unix type shell.
|
| template<class str> |
| str | escapeStringMake (const str &arg) |
| | Escape dangerous chars in makefile strings/filenames (space),#,=.
|
| template<class str> |
| str | quoteFilename (const str &arg) |
| | Quote a filename, so that it is surrounded by "".
|
| std::string | tolower (const std::string &s) |
| | convert a string to lowercase
|
| std::string | CurrentTime () |
| | current time as a string
|
| std::string | getExtension (const std::string &basename2) |
| | Get extension of a filename.
|
| std::string | stripExtension (const std::string &basename2) |
| | remove extension of a filename
|
| std::string | stripPath (const std::string &filename) |
| | remove the path of a filename (mainly useful for gui display of filenames)
|
| std::string | getPathPrefix (const std::string &filename) |
| | Get the path to a filename.
|
| std::string | doubleToString (double d, int digits) |
| | convert a double to a string, suitable for display within a GUI.
|
| void | ControlPointErrorColour (const double cperr, double &r, double &g, double &b) |
| template<typename STR> |
| bool | stringToDouble (const STR &str_, double &dest) |
| | convert a string to a double, ignore localisation.
|
| template<typename Target, typename Source> |
| Target | lexical_cast (Source arg) |
| template<class str> |
| str | QuoteStringInternal (const str &arg, const str "echar, const str &replacements) |
| template<class str> |
| str | replaceAll (const str &arg, const str &target, const str &replacement) |