![]() |
SOPT
Sparse OPTimisation
|
Go to the source code of this file.
Classes | |
struct | sopt::utilities::bad_lexical_cast |
Exception to be thrown by lexical_cast (below) More... | |
Namespaces | |
sopt | |
sopt::utilities | |
Functions | |
Image | sopt::utilities::read_tiff (std::string const &name) |
Reads tiff image. More... | |
void | sopt::utilities::write_tiff (Image<> const &image, std::string const &filename) |
Writes a tiff greyscale file. More... | |
template<typename T , typename U > | |
T | sopt::utilities::lexical_cast (const U &in) |
Convert between any types via stringstream. More... | |
template<typename T = std::string> | |
std::vector< T > | sopt::utilities::split (std::string s, const std::string &sep) |
Split a string on a specified delimiter with optional cast to another type. More... | |
template<typename T > | |
std::vector< float > | sopt::utilities::imageToFloat (sopt::Vector< T > const &image) |
template<typename T > | |
sopt::Vector< T > | sopt::utilities::floatToImage (std::vector< float > const &float_image) |