MeVisLab Toolbox Reference
|
Go to the source code of this file.
Namespaces | |
namespace | ml |
Main documentation file for ML users and developers. | |
Functions | |
MLITK_SUPPORT_EXPORT std::string | ml::mlITKMakeStdString (const char *str) |
Convert for a char pointer to a std::string safely. | |
MLITK_SUPPORT_EXPORT std::string | ml::mlITKMakeStdString (const std::string &str) |
Convert for a std::string to a std::string safely. | |
MLITK_SUPPORT_EXPORT std::string | ml::mlITKGetLatin1FromUTF8 (const std::string &utf8StdString) |
Convert string from UTF8 to Latin1; return empty string on failure or if "" is passed as utf8StdString. | |
MLITK_SUPPORT_EXPORT std::string & | ml::mlITKGetLatin1FromUTF8Static (const std::string &utf8StdString) |
Like mlITKGetLatin1FromUTF8(const std::string &utf8StdString); the only difference is that the return value is stored in a static variable to maintain the return value. | |
MLITK_SUPPORT_EXPORT std::string | ml::mlITKGetUTF8FromLatin1 (const std::string &latin1StdString) |
Convert string from Latin1 to UTF8; return empty string on failure or if "" is passed as latin1StdString. | |
MLITK_SUPPORT_EXPORT std::string & | ml::mlITKGetUTF8FromLatin1Static (const std::string &latin1StdString) |
Like mlITKGetUTF8FromLatin1(const std::string &latin1StdString); the only difference is that the return value is stored in a static variable to maintain the return value. | |
template<typename TemplArrElemType > | |
void | ml::ITKArrayFromFixedSizeSTLVector (const ITKML_TYPENAME std::vector< TemplArrElemType > &stlVec, TemplArrElemType *arr, size_t TemplArrSize) |
Copies TemplArrSize elements from stlVec to arr and - if not enough elements are available - fills up the rest with 0. | |
template<typename TemplArrElemType , unsigned int TemplArrSize> | |
const ITKML_TYPENAME std::vector< TemplArrElemType > | ml::STLVectorFromFixedSizeITKArray (const TemplArrElemType *theArray) |
Create an STL vector with type TemplArrElemType which contains TemplArrSize elements which are read from theArray, hence the array must have at least TemplArrSize elements. | |