|
Hugintrunk
0.1
|
#include "utils.h"#include "stl_utils.h"#include "hugin_version.h"#include "hugin_config.h"#include <sys/time.h>#include <cstdlib>#include <unistd.h>#include <sys/types.h>#include <pwd.h>#include <time.h>#include <fstream>#include <stdio.h>#include <cstdio>#include <algorithm>#include <filesystem>#include <lcms2.h>#include <GL/glew.h>#include <X11/Xlib.h>#include <X11/Xutil.h>#include <GL/glx.h>
Go to the source code of this file.
Classes | |
| struct | hugin_utils::ContextSettings |
Namespaces | |
| hugin_utils | |
| namespace for various utils | |
Macros | |
| #define | XP1 5.0f |
| #define | XP2 10.0f |
Functions | |
| std::string | hugin_utils::GetCurrentTimeString () |
| current time as a string More... | |
| std::string | hugin_utils::getExtension (const std::string &basename) |
| Get extension of a filename. More... | |
| std::string | hugin_utils::stripExtension (const std::string &basename) |
| remove extension of a filename More... | |
| std::string | hugin_utils::stripPath (const std::string &filename) |
| remove the path of a filename (mainly useful for gui display of filenames) More... | |
| std::string | hugin_utils::getPathPrefix (const std::string &filename) |
| Get the path to a filename. More... | |
| std::string | hugin_utils::StrTrim (const std::string &str) |
| remove trailing and leading white spaces and tabs More... | |
| std::string | hugin_utils::doubleToString (double d, int fractionaldigits=-1) |
| convert a double to a string, suitable for display within a GUI. More... | |
| bool | hugin_utils::stringToInt (const std::string &s, int &val) |
| convert string to integer value, returns true, if sucessful More... | |
| bool | hugin_utils::stringToUInt (const std::string &s, unsigned int &val) |
| convert string to unsigned integer value, returns true, if sucessful More... | |
| std::vector< std::string > | hugin_utils::SplitString (const std::string &s, const std::string &sep) |
| split string s at given sep, returns vector of strings More... | |
| void | hugin_utils::ReplaceAll (std::string &s, const std::string &oldChar, char newChar) |
| replace all characters oldChar in s with newChar More... | |
| bool | hugin_utils::StringContainsCaseInsensitive (const std::string &s1, const std::string &s2) |
| check if s1 contains s2 using case insensitive comparison More... | |
| void | hugin_utils::ControlPointErrorColour (const double cperr, double &r, double &g, double &b) |
| bool | hugin_utils::FileExists (const std::string &filename) |
| checks if file exists More... | |
| std::string | hugin_utils::GetAbsoluteFilename (const std::string &filename) |
| returns the full absolute filename More... | |
| bool | hugin_utils::IsFileTypeSupported (const std::string &filename) |
| return true, if file type by extension is supported by vigra More... | |
| void | hugin_utils::EnforceExtension (std::string &filename, const std::string &defaultExtension) |
| check if filename contains extension, if not add default extension More... | |
| std::string | hugin_utils::GetOutputFilename (const std::string &out, const std::string &in, const std::string &suffix) |
| construct output filename, if ouput is known return this value otherwise use the input filename and append the suffix before the extension More... | |
| std::string | hugin_utils::GetDataDir () |
| returns the full path to the data directory More... | |
| std::string | hugin_utils::GetHomeDir () |
| std::string | hugin_utils::GetUserAppDataDir () |
| returns the directory for user specific Hugin settings, e.g. More... | |
| bool | hugin_utils::CreateContext (int *argcp, char **argv) |
| void | hugin_utils::DestroyContext () |
| bool | hugin_utils::initGPU (int *argcp, char **argv) |
| Try to initalise GLUT and GLEW, and create an OpenGL context for GPU stitching. More... | |
| bool | hugin_utils::wrapupGPU () |
| cleanup GPU settings More... | |
| std::string | hugin_utils::GetHuginVersion () |
| return a string with version numbers More... | |
| std::string | hugin_utils::GetICCDesc (const vigra::ImageImportInfo::ICCProfile &iccProfile) |
| returns description of given icc profile More... | |
| std::string | hugin_utils::GetICCDesc (const cmsHPROFILE &profile) |
| bool | hugin_utils::IsLinearICCProfile (const vigra::ImageImportInfo::ICCProfile &iccProfile) |
| return true if icc profile is linear one, otherwise return false More... | |
| std::vector< std::string > | hugin_utils::GetRawExtensions () |
| return vector of known extensions of raw files, all lower case More... | |
| bool | hugin_utils::IsRawExtension (const std::string testExt) |
| return true if extension belongs to a raw file More... | |
Variables | |
| static ContextSettings | hugin_utils::context |
$Id$
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this software. If not, see http://www.gnu.org/licenses/.
Definition in file utils.cpp.
| #define XP1 5.0f |
Referenced by hugin_utils::ControlPointErrorColour().
| #define XP2 10.0f |
Referenced by hugin_utils::ControlPointErrorColour().
1.8.5