MeVisLab Toolbox Reference
mlReleaseToolsMisc.h File Reference

A collection of some general tool functions. More...

Go to the source code of this file.

Namespaces

namespace  ml
 Defines the class GetTileJob.
namespace  ml::ReleaseToolsMisc
 A collection of miscellaneous tool functions.

Enumerations

enum  ml::ReleaseToolsMisc::MonotonicTypes {
  ml::ReleaseToolsMisc::Empty = 1 , ml::ReleaseToolsMisc::Singular = 2 , ml::ReleaseToolsMisc::Irregular = 4 , ml::ReleaseToolsMisc::Uniform = 8 ,
  ml::ReleaseToolsMisc::StrictlyMonotonicDecreasing = 16 , ml::ReleaseToolsMisc::MonotonicDecreasing = 32 , ml::ReleaseToolsMisc::MonotonicIncreasing = 64 , ml::ReleaseToolsMisc::StrictlyMonotonicIncreasing = 128
}
 An enumerator describing whether elements of a vector have a monotonic order. More...

Functions

MLRELEASE_TOOLS_EXPORT ReleaseToolsIO::StringVector ml::ReleaseToolsMisc::split (const std::string &value, const std::string &sep=LineSeparator)
MLRELEASE_TOOLS_EXPORT ReleaseToolsIO::StringVector ml::ReleaseToolsMisc::filterWithRegExVector (const ReleaseToolsIO::StringVector &strVec, const ReleaseToolsIO::StringVector &regExpressionsVec, std::vector< size_t > *matchedRegExIdxVec=nullptr)
MLRELEASE_TOOLS_EXPORT ReleaseToolsIO::StringVector ml::ReleaseToolsMisc::filterWithRegExVector (const ReleaseToolsIO::StringVector &strVec, const std::string &regEx)
MLRELEASE_TOOLS_EXPORT std::string ml::ReleaseToolsMisc::filterLinesWithRegEx (const std::string &str, const std::string &regEx, const std::string &sep=LineSeparator)
MLRELEASE_TOOLS_EXPORT ReleaseToolsIO::StringVector ml::ReleaseToolsMisc::filterLines (const ReleaseToolsIO::StringVector &inLines, const bool useRegularExpression, const std::string &firstExpression, const std::string &lineEnd, const MLint index, std::string *errorInfos=nullptr)
MLRELEASE_TOOLS_EXPORT MLErrorCode ml::ReleaseToolsMisc::copyBitSubImagesToUInt8SubImage (SubImage &outSubImage, const std::vector< SubImage > &frameSubImgs, MLint zTranslate=0, MLuint8 value=1, bool orValue=false)
MLRELEASE_TOOLS_EXPORT bool ml::ReleaseToolsMisc::isEquidistant (const std::vector< double > &dblVec, double eps=10e-5)
MLRELEASE_TOOLS_EXPORT int ml::ReleaseToolsMisc::getMonotonicProperties (const std::vector< double > &dblVec, double eps=10e-5)
MLRELEASE_TOOLS_EXPORT MLErrorCode ml::ReleaseToolsMisc::calculateAverageOfSumOfSquaredDifferences (const SubImage &subImg1, const SubImage &subImg2, double &avrOfSumOfSquaredDiffs)
template<typename DT1, typename DT2>
double ml::ReleaseToolsMisc::calculateAverageOfSumOfSquaredDifferences (TSubImage< DT1 > &img1, TSubImage< DT2 > &img2, SubImageBox box)
MLRELEASE_TOOLS_EXPORT std::string ml::ReleaseToolsMisc::toBase64 (const std::string &inString)
MLRELEASE_TOOLS_EXPORT std::string ml::ReleaseToolsMisc::fromBase64 (const std::string &inString)
MLRELEASE_TOOLS_EXPORT std::string ml::ReleaseToolsMisc::createHashFromBytes (const unsigned char *data, size_t numBytes, const std::string &hashAlgorithm="SHA1")

Variables

MLRELEASE_TOOLS_EXPORT const std::string ml::ReleaseToolsMisc::LineSeparator
 The default line separator used for line endings.

Detailed Description

A collection of some general tool functions.

Author
Wolf Spindler
Date
10/2012

Definition in file mlReleaseToolsMisc.h.