FAST  3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
Namespaces | Functions
Utility.hpp File Reference
#include "FAST/ExecutionDevice.hpp"
#include "FAST/Data/DataTypes.hpp"
#include <algorithm>
#include <functional>
#include <cctype>
#include <locale>
+ Include dependency graph for Utility.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 fast
 

Functions

FAST_EXPORT double fast::log2 (double n)
 
FAST_EXPORT double fast::round (double n)
 
FAST_EXPORT double fast::round (double n, int decimals)
 
template<class T >
fast::square (T x)
 
template<typename ... Args>
std::string fast::format (std::string format, Args &&... args)
 
template<class T >
fast::min (T a, T b)
 
template<class T >
fast::max (T a, T b)
 
template<class T >
fast::sign (T value)
 
FAST_EXPORT unsigned int fast::getPowerOfTwoSize (unsigned int size)
 
FAST_EXPORT void * fast::allocateDataArray (unsigned int voxels, DataType type, unsigned int nrOfComponents)
 
template<class T >
float fast::getSumFromOpenCLImageResult (void *voidData, unsigned int size, unsigned int nrOfComponents)
 
FAST_EXPORT void fast::getMaxAndMinFromOpenCLImage (OpenCLDevice::pointer device, cl::Image2D image, DataType type, float *min, float *max)
 
FAST_EXPORT void fast::getMaxAndMinFromOpenCLImage (OpenCLDevice::pointer device, cl::Image3D image, DataType type, float *min, float *max)
 
FAST_EXPORT void fast::getMaxAndMinFromOpenCLBuffer (OpenCLDevice::pointer device, cl::Buffer buffer, unsigned int size, DataType type, float *min, float *max)
 
FAST_EXPORT void fast::getIntensitySumFromOpenCLImage (OpenCLDevice::pointer device, cl::Image2D image, DataType type, float *sum)
 
template<class T >
void fast::getMaxAndMinFromData (void *voidData, unsigned int nrOfElements, float *min, float *max)
 
template<class T >
float fast::getSumFromData (void *voidData, unsigned int nrOfElements)
 
FAST_EXPORT cl::size_t< 3 > fast::createRegion (unsigned int x, unsigned int y, unsigned int z)
 
FAST_EXPORT cl::size_t< 3 > fast::createRegion (Vector3ui size)
 
FAST_EXPORT cl::size_t< 3 > fast::createOrigoRegion ()
 
FAST_EXPORT std::string fast::getCLErrorString (cl_int err)
 
FAST_EXPORT std::vector< std::string > fast::split (const std::string input, const std::string &delimiter=" ", float removeEmpty=true)
 
FAST_EXPORT std::string fast::replace (std::string str, std::string find, std::string replacement)
 
FAST_EXPORT Matrix4f fast::loadPerspectiveMatrix (float fovy, float aspect, float zNear, float zFar)
 
FAST_EXPORT Matrix4f fast::loadOrthographicMatrix (float left, float right, float bottom, float top, float zNear, float zFar)
 
FAST_EXPORT void fast::createDirectory (std::string path)
 
FAST_EXPORT void fast::createDirectories (std::string path)
 
FAST_EXPORT bool fast::fileExists (std::string filename)
 
FAST_EXPORT std::vector< std::string > fast::getDirectoryList (std::string path, bool getFiles=true, bool getDirectories=false)
 
FAST_EXPORT std::string fast::getDirName (std::string path)
 
FAST_EXPORT std::string fast::currentDateTime (std::string format="%Y-%m-%d-%H%M%S")
 
FAST_EXPORT std::string fast::join (std::string path)
 
FAST_EXPORT std::string fast::getModifiedDate (std::string filename)
 
template<typename ... T>
std::string fast::join (const std::string &path1, T... args)
 
FAST_EXPORT bool fast::isFile (const std::string &path)
 
FAST_EXPORT bool fast::isDir (const std::string &path)
 
template<class T >
std::unique_ptr< T > fast::make_uninitialized_unique (std::size_t size)
 
FAST_EXPORT void fast::extractZipFile (std::string zipFilepath, std::string destination)
 
FAST_EXPORT std::string fast::stringToLower (std::string)
 
FAST_EXPORT std::string fast::stringToUpper (std::string)