Namespace for IO helper functions.
More...
|
std::string | extension (std::string const &filename, bool toLower=false) |
|
template<class Extensions > |
bool | checkExtensions (std::string const &filename, Extensions &&extensions) |
|
template<class F > |
void | loadFromBST (std::string const &filename, F &&f) |
| Loads a BST file and calles the given functional with the loaded data. More...
|
|
Namespace for IO helper functions.
template<class F >
void CortidQCT::IO::loadFromBST |
( |
std::string const & |
filename, |
|
|
F && |
f |
|
) |
| |
Loads a BST file and calles the given functional with the loaded data.
The functional is called with a pointer to the raw data as the first argument, the 3d size of the loaded data as the second argument a with the 3d resolution (i.e. voxel size) as the third argument.
- Template Parameters
-
F | functional to be called by the function |
- Parameters
-
filename | Path to the file to be loaded |
f | functional that is beeing called |
- Exceptions
-
std::runtime_error | if the loading failed |