CortidQCT  1.2.2.52
Functions
CortidQCT::IO Namespace Reference

Namespace for IO helper functions. More...

Functions

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...
 

Detailed Description

Namespace for IO helper functions.

Function Documentation

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
Ffunctional to be called by the function
Parameters
filenamePath to the file to be loaded
ffunctional that is beeing called
Exceptions
std::runtime_errorif the loading failed