FAST
3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
|
Namespaces | |
SceneGraph | |
Typedefs | |
typedef std::map< std::string, float > | classifications |
template<int NumDimensions> | |
using | TensorData = Eigen::TensorMap< Eigen::Tensor< float, NumDimensions, Eigen::RowMajor > > |
typedef Eigen::Matrix< uint, Eigen::Dynamic, 1 > | VectorXui |
typedef Eigen::Matrix< uint, 4, 1 > | Vector4ui |
typedef Eigen::Matrix< uint, 3, 1 > | Vector3ui |
typedef Eigen::Matrix< uint, 2, 1 > | Vector2ui |
using | pixel_deleter_t = std::function< void(void *)> |
using | unique_pixel_ptr = std::unique_ptr< void, pixel_deleter_t > |
typedef std::pair< cl::Platform, std::vector< cl::Device > > | PlatformDevices |
Functions | |
FAST_EXPORT std::string | getModelFileExtension (ModelFormat format) |
FAST_EXPORT ModelFormat | getModelFormat (std::string filename) |
FAST_EXPORT std::string | getModelFormatName (ModelFormat format) |
void FAST_EXPORT | downloadTestDataIfNotExists (std::string overrideDestination="", bool force=false) |
std::ostream & | operator<< (std::ostream &os, DataBoundingBox &object) |
FAST_EXPORT std::string | getCTypeAsString (DataType type) |
FAST_EXPORT cl::ImageFormat | getOpenCLImageFormat (OpenCLDevice::pointer, cl_mem_object_type imageType, DataType type, unsigned int channels) |
FAST_EXPORT size_t | getSizeOfDataType (DataType type, unsigned int nrOfChannels) |
FAST_EXPORT float | getDefaultIntensityLevel (DataType type) |
FAST_EXPORT float | getDefaultIntensityWindow (DataType type) |
FAST_EXPORT void | deleteArray (void *data, DataType type) |
template<typename T > | |
auto | pixel_deleter (void const *data) -> void |
template<typename T > | |
auto | make_unique_pixel (T *ptr) -> unique_pixel_ptr |
unique_pixel_ptr | allocatePixelArray (std::size_t size, DataType type) |
std::string | intToString (int number) |
FAST_EXPORT std::vector< Pipeline > | getAvailablePipelines (std::string path="") |
template<class T > | |
Reporter | operator<< (Reporter report, const T &content) |
template<> | |
FAST_EXPORT Reporter | operator<< (Reporter report, const ReporterEnd &end) |
FAST_EXPORT double | log2 (double n) |
FAST_EXPORT double | round (double n) |
FAST_EXPORT double | round (double n, int decimals) |
template<class T > | |
T | square (T x) |
template<typename ... Args> | |
std::string | format (std::string format, Args &&... args) |
template<class T > | |
T | min (T a, T b) |
template<class T > | |
T | max (T a, T b) |
template<class T > | |
T | sign (T value) |
FAST_EXPORT unsigned int | getPowerOfTwoSize (unsigned int size) |
FAST_EXPORT void * | allocateDataArray (unsigned int voxels, DataType type, unsigned int nrOfComponents) |
template<class T > | |
float | getSumFromOpenCLImageResult (void *voidData, unsigned int size, unsigned int nrOfComponents) |
FAST_EXPORT void | getMaxAndMinFromOpenCLImage (OpenCLDevice::pointer device, cl::Image2D image, DataType type, float *min, float *max) |
FAST_EXPORT void | getMaxAndMinFromOpenCLImage (OpenCLDevice::pointer device, cl::Image3D image, DataType type, float *min, float *max) |
FAST_EXPORT void | getMaxAndMinFromOpenCLBuffer (OpenCLDevice::pointer device, cl::Buffer buffer, unsigned int size, DataType type, float *min, float *max) |
FAST_EXPORT void | getIntensitySumFromOpenCLImage (OpenCLDevice::pointer device, cl::Image2D image, DataType type, float *sum) |
template<class T > | |
void | getMaxAndMinFromData (void *voidData, unsigned int nrOfElements, float *min, float *max) |
template<class T > | |
float | getSumFromData (void *voidData, unsigned int nrOfElements) |
FAST_EXPORT cl::size_t< 3 > | createRegion (unsigned int x, unsigned int y, unsigned int z) |
FAST_EXPORT cl::size_t< 3 > | createRegion (Vector3ui size) |
FAST_EXPORT cl::size_t< 3 > | createOrigoRegion () |
FAST_EXPORT std::string | getCLErrorString (cl_int err) |
FAST_EXPORT std::vector< std::string > | split (const std::string input, const std::string &delimiter=" ", float removeEmpty=true) |
FAST_EXPORT std::string | replace (std::string str, std::string find, std::string replacement) |
FAST_EXPORT Matrix4f | loadPerspectiveMatrix (float fovy, float aspect, float zNear, float zFar) |
FAST_EXPORT Matrix4f | loadOrthographicMatrix (float left, float right, float bottom, float top, float zNear, float zFar) |
FAST_EXPORT void | createDirectory (std::string path) |
FAST_EXPORT void | createDirectories (std::string path) |
FAST_EXPORT bool | fileExists (std::string filename) |
FAST_EXPORT std::vector< std::string > | getDirectoryList (std::string path, bool getFiles=true, bool getDirectories=false) |
FAST_EXPORT std::string | getDirName (std::string path) |
FAST_EXPORT std::string | currentDateTime (std::string format="%Y-%m-%d-%H%M%S") |
FAST_EXPORT std::string | join (std::string path) |
FAST_EXPORT std::string | getModifiedDate (std::string filename) |
template<typename ... T> | |
std::string | join (const std::string &path1, T... args) |
FAST_EXPORT bool | isFile (const std::string &path) |
FAST_EXPORT bool | isDir (const std::string &path) |
template<class T > | |
std::unique_ptr< T > | make_uninitialized_unique (std::size_t size) |
FAST_EXPORT void | extractZipFile (std::string zipFilepath, std::string destination) |
FAST_EXPORT std::string | stringToLower (std::string) |
FAST_EXPORT std::string | stringToUpper (std::string) |
FAST_SIMPLE_DATA_OBJECT (FloatScalar, float) | |
typedef std::map<std::string, float> fast::classifications |
using fast::pixel_deleter_t = typedef std::function<void(void *)> |
typedef std::pair<cl::Platform, std::vector<cl::Device> > fast::PlatformDevices |
using fast::TensorData = typedef Eigen::TensorMap<Eigen::Tensor<float, NumDimensions, Eigen::RowMajor> > |
using fast::unique_pixel_ptr = typedef std::unique_ptr<void, pixel_deleter_t> |
typedef Eigen::Matrix<uint, 2, 1> fast::Vector2ui |
typedef Eigen::Matrix<uint, 3, 1> fast::Vector3ui |
typedef Eigen::Matrix<uint, 4, 1> fast::Vector4ui |
typedef Eigen::Matrix<uint, Eigen::Dynamic, 1> fast::VectorXui |
enum fast::AttributeType |
enum fast::DataType |
enum fast::DevicePlatform |
enum fast::DeviceType |
enum fast::DeviceVendor |
|
strong |
|
strong |
|
strong |
|
strong |
enum fast::PlaneType |
enum fast::StreamingMode |
FAST_EXPORT void* fast::allocateDataArray | ( | unsigned int | voxels, |
DataType | type, | ||
unsigned int | nrOfComponents | ||
) |
unique_pixel_ptr fast::allocatePixelArray | ( | std::size_t | size, |
DataType | type | ||
) |
FAST_EXPORT void fast::createDirectories | ( | std::string | path | ) |
Creates all directories in the given path. Throws exception if it fails
FAST_EXPORT void fast::createDirectory | ( | std::string | path | ) |
Creates a directory at the given path. Throws exception if it fails
FAST_EXPORT cl::size_t<3> fast::createOrigoRegion | ( | ) |
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 std::string fast::currentDateTime | ( | std::string | format = "%Y-%m-%d-%H%M%S" | ) |
Returns a string of the current date
format | see http://en.cppreference.com/w/cpp/chrono/c/strftime |
FAST_EXPORT void fast::deleteArray | ( | void * | data, |
DataType | type | ||
) |
void FAST_EXPORT fast::downloadTestDataIfNotExists | ( | std::string | overrideDestination = "" , |
bool | force = false |
||
) |
FAST_EXPORT void fast::extractZipFile | ( | std::string | zipFilepath, |
std::string | destination | ||
) |
Extract the contents of a zip file to a given destination.
zipFilepath | path to zip file to extract |
destination | path to where to extract the conents of the zip file |
fast::FAST_SIMPLE_DATA_OBJECT | ( | FloatScalar | , |
float | |||
) |
FAST_EXPORT bool fast::fileExists | ( | std::string | filename | ) |
Check if file exists
filename |
std::string fast::format | ( | std::string | format, |
Args &&... | args | ||
) |
FAST_EXPORT std::vector<Pipeline> fast::getAvailablePipelines | ( | std::string | path = "" | ) |
Retrieve a list of all pipelines stored in .fpl files in the specified pipeline directory
FAST_EXPORT std::string fast::getCLErrorString | ( | cl_int | err | ) |
FAST_EXPORT std::string fast::getCTypeAsString | ( | DataType | type | ) |
FAST_EXPORT float fast::getDefaultIntensityLevel | ( | DataType | type | ) |
FAST_EXPORT float fast::getDefaultIntensityWindow | ( | DataType | type | ) |
FAST_EXPORT std::vector<std::string> fast::getDirectoryList | ( | std::string | path, |
bool | getFiles = true , |
||
bool | getDirectories = false |
||
) |
Returns a list of all files in a directory
path | |
getFiles | Set to true to find files in directory |
getDirectories | Set to true to find subdirectories |
FAST_EXPORT std::string fast::getDirName | ( | std::string | path | ) |
Returns the dir name of the given path. Example: getDirName("/home/user/something/file.txt") returns home/user/something/.
path |
FAST_EXPORT void fast::getIntensitySumFromOpenCLImage | ( | OpenCLDevice::pointer | device, |
cl::Image2D | image, | ||
DataType | type, | ||
float * | sum | ||
) |
void fast::getMaxAndMinFromData | ( | void * | voidData, |
unsigned int | nrOfElements, | ||
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::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 std::string fast::getModelFileExtension | ( | ModelFormat | format | ) |
Get model format file extension.
FAST_EXPORT ModelFormat fast::getModelFormat | ( | std::string | filename | ) |
Get model format of the given file.
FAST_EXPORT std::string fast::getModelFormatName | ( | ModelFormat | format | ) |
Get name of model format as string
format |
FAST_EXPORT std::string fast::getModifiedDate | ( | std::string | filename | ) |
Get modified date of a file as a string
filename |
FAST_EXPORT cl::ImageFormat fast::getOpenCLImageFormat | ( | OpenCLDevice::pointer | , |
cl_mem_object_type | imageType, | ||
DataType | type, | ||
unsigned int | channels | ||
) |
FAST_EXPORT unsigned int fast::getPowerOfTwoSize | ( | unsigned int | size | ) |
FAST_EXPORT size_t fast::getSizeOfDataType | ( | DataType | type, |
unsigned int | nrOfChannels | ||
) |
float fast::getSumFromData | ( | void * | voidData, |
unsigned int | nrOfElements | ||
) |
float fast::getSumFromOpenCLImageResult | ( | void * | voidData, |
unsigned int | size, | ||
unsigned int | nrOfComponents | ||
) |
|
inline |
FAST_EXPORT bool fast::isDir | ( | const std::string & | path | ) |
Check if path is a directory.
path |
FAST_EXPORT bool fast::isFile | ( | const std::string & | path | ) |
Check if path is a file.
path |
std::string fast::join | ( | const std::string & | path1, |
T... | args | ||
) |
Join multiple paths.
T |
path1 | |
args |
FAST_EXPORT std::string fast::join | ( | std::string | path | ) |
Removes trailing /
path |
FAST_EXPORT Matrix4f fast::loadOrthographicMatrix | ( | float | left, |
float | right, | ||
float | bottom, | ||
float | top, | ||
float | zNear, | ||
float | zFar | ||
) |
FAST_EXPORT Matrix4f fast::loadPerspectiveMatrix | ( | float | fovy, |
float | aspect, | ||
float | zNear, | ||
float | zFar | ||
) |
FAST_EXPORT double fast::log2 | ( | double | n | ) |
std::unique_ptr<T> fast::make_uninitialized_unique | ( | std::size_t | size | ) |
Same as make_unique(std::size_t size), except this version will not value initialize the dynamic array. This is useful for large arrays.
T |
size |
auto fast::make_unique_pixel | ( | T * | ptr | ) | -> unique_pixel_ptr |
T fast::max | ( | T | a, |
T | b | ||
) |
T fast::min | ( | T | a, |
T | b | ||
) |
FAST_EXPORT Reporter fast::operator<< | ( | Reporter | report, |
const ReporterEnd & | end | ||
) |
std::ostream& fast::operator<< | ( | std::ostream & | os, |
DataBoundingBox & | object | ||
) |
auto fast::pixel_deleter | ( | void const * | data | ) | -> void |
FAST_EXPORT std::string fast::replace | ( | std::string | str, |
std::string | find, | ||
std::string | replacement | ||
) |
FAST_EXPORT double fast::round | ( | double | n | ) |
FAST_EXPORT double fast::round | ( | double | n, |
int | decimals | ||
) |
T fast::sign | ( | T | value | ) |
FAST_EXPORT std::vector<std::string> fast::split | ( | const std::string | input, |
const std::string & | delimiter = " " , |
||
float | removeEmpty = true |
||
) |
Function for splitting a string
input | string |
delimiter | string |
T fast::square | ( | T | x | ) |
Does simply x^2 = x*x
T |
x | a numeric value |
FAST_EXPORT std::string fast::stringToLower | ( | std::string | ) |
FAST_EXPORT std::string fast::stringToUpper | ( | std::string | ) |