|
|
Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <elxConversion.h>
A class that contains utility functions for the conversion of number of seconds and parameter values to text.
Definition at line 50 of file elxConversion.h.
Public Types | |
| using | ParameterMapType = std::map<std::string, ParameterValuesType> |
| using | ParameterValuesType = std::vector<std::string> |
| using | Self = Conversion |
Static Public Member Functions | |
| static constexpr const char * | BoolToString (const bool arg) |
| template<typename TValue> | |
| static std::vector< TValue > | ConcatenateVectors (std::vector< TValue > vector1, std::vector< TValue > vector2) |
| static std::string | CreateParameterMapFileNameExtension (const ParameterMapStringFormat format) |
| static bool | IsNumber (const std::string &) |
| static std::string | ObjectPtrToString (itk::Object *) |
| static std::string_view | ParameterMapStartOfCommentString (const ParameterMapStringFormat format) |
| static std::string | ParameterMapToString (const ParameterMapType &, const ParameterMapStringFormat) |
| static std::string | SecondsToDHMS (const double totalSeconds, const unsigned int precision) |
| static ParameterMapStringFormat | StringToParameterMapStringFormat (const std::string &str) |
| static bool | StringToValue (const std::string &str, bool &value) |
| static bool | StringToValue (const std::string &str, itk::Object *&value) |
| static bool | StringToValue (const std::string &str, std::string &value) |
| template<typename T> | |
| static bool | StringToValue (const std::string &str, T &value) |
| static std::string | ToNativePathNameSeparators (const std::string &) |
| static itk::OptimizerParameters< double > | ToOptimizerParameters (const std::vector< double > &) |
| static std::string | ToString (const bool arg) |
| template<typename TInteger> | |
| static std::string | ToString (const TInteger integerValue) |
| static std::string | ToString (double) |
| static std::string | ToString (float) |
| template<typename T, unsigned int NRows, unsigned int NColumns> | |
| static std::vector< std::string > | ToVectorOfStrings (const itk::Matrix< T, NRows, NColumns > &matrix) |
| template<typename TContainer, typename SFINAE = typename TContainer::iterator> | |
| static std::vector< std::string > | ToVectorOfStrings (const TContainer &container) |
| static bool | StringToValue (const std::string &str, double &value) |
| static bool | StringToValue (const std::string &str, float &value) |
| static bool | StringToValue (const std::string &str, char &value) |
| static bool | StringToValue (const std::string &str, signed char &value) |
| static bool | StringToValue (const std::string &str, unsigned char &value) |
| using elastix::Conversion::ParameterMapType = std::map<std::string, ParameterValuesType> |
Definition at line 55 of file elxConversion.h.
| using elastix::Conversion::ParameterValuesType = std::vector<std::string> |
Corresponds with typedefs from the elastix class itk::ParameterFileParser.
Definition at line 54 of file elxConversion.h.
| using elastix::Conversion::Self = Conversion |
Definition at line 56 of file elxConversion.h.
|
inlinestaticconstexpr |
Convenience function to convert a boolean to a text string.
Definition at line 64 of file elxConversion.h.
|
inlinestatic |
Convenience function to concatenate two vectors.
Definition at line 161 of file elxConversion.h.
|
static |
Creates a parameter map file name extension for the corresponding format.
|
static |
Convenience function which tells whether the argument may represent a number (either fixed point, floating point, or integer/whole number).
|
static |
Converts a raw itk::Object pointer to a text string.
|
inlinestatic |
Resturns the character sequence to indicate the start of a comment, for the specified format.
Definition at line 83 of file elxConversion.h.
|
static |
Converts the specified parameter map to a string, according to the specified format.
|
static |
Convenience function to convert seconds to day, hour, minute, second format.
|
static |
Converts the specified string to the corresponding enum value. Returns ParameterMapStringFormat::LegacyTxt when the string is empty.
Overload to cast a string to a bool. Returns true when casting was successful and false otherwise.
|
static |
Overloads for (signed/unsigned) char types, processing them as 8-bits integer types.
Overloads for floating point types, to support NaN and infinity.
Overloads for floating point types, to support NaN and infinity.
|
static |
Overload to cast a string to an itk::Object pointer. Returns true when casting was successful and false otherwise.
|
static |
Overloads for (signed/unsigned) char types, processing them as 8-bits integer types.
|
static |
Provide a specialization for std::string, since the general StringToValue (especially outputStringStream >> value) will not work for strings containing spaces.
|
inlinestatic |
A templated function to cast strings to a type T. Returns true when casting was successful and false otherwise. We make use of the casting functionality of string streams.
Definition at line 187 of file elxConversion.h.
|
static |
Overloads for (signed/unsigned) char types, processing them as 8-bits integer types.
|
static |
Similar to Qt5 QDir::toNativeSeparators(const QString &pathName).
|
static |
Converts the specified std::vector to an OptimizerParameters object.
|
inlinestatic |
Convenience function overload to convert a Boolean to a text string.
Definition at line 90 of file elxConversion.h.
|
inlinestatic |
Convenience function overload to convert an integer to a text string.
Definition at line 106 of file elxConversion.h.
|
static |
Convenience function overload to convert a double precision floating point to a text string.
|
static |
Convenience function overload to convert a single precision floating point to a text string.
|
inlinestatic |
Convenience function overload to convert a 2-D matrix to a vector of text strings. Typically used for an itk::ImageBase::DirectionType.
Definition at line 142 of file elxConversion.h.
|
inlinestatic |
Convenience function overload to convert a container to a vector of text strings. The container may be an itk::Size, itk::Index, itk::Point<double,N>, or itk::Vector<double,N>, or itk::OptimizationParameters<double>.
The C++ SFINAE idiom is being used to ensure that the argument type supports standard C++ iteration.
Definition at line 124 of file elxConversion.h.
Generated on 1774142652 for elastix by 1.15.0 |