FAST  3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
Namespaces | Macros | Typedefs | Enumerations | Functions
DataTypes.hpp File Reference
#include <cmath>
#include "FAST/Exception.hpp"
#include "CL/OpenCL.hpp"
#include "FAST/ExecutionDevice.hpp"
#include <iostream>
#include <Eigen/Dense>
+ Include dependency graph for DataTypes.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 fast
 

Macros

#define NOMINMAX
 
#define _USE_MATH_DEFINES
 
#define fastCaseTypeMacro(fastType, cType, call)   case fastType: {typedef cType FAST_TYPE; call;} break;
 
#define fastSwitchTypeMacro(call)
 

Typedefs

typedef unsigned char uchar
 
typedef unsigned short ushort
 
typedef unsigned int uint
 
typedef Eigen::Matrix< uint, Eigen::Dynamic, 1 > fast::VectorXui
 
typedef Eigen::Matrix< uint, 4, 1 > fast::Vector4ui
 
typedef Eigen::Matrix< uint, 3, 1 > fast::Vector3ui
 
typedef Eigen::Matrix< uint, 2, 1 > fast::Vector2ui
 

Enumerations

enum  fast::DataType {
  fast::TYPE_FLOAT, fast::TYPE_UINT8, fast::TYPE_INT8, fast::TYPE_UINT16,
  fast::TYPE_INT16, fast::TYPE_UNORM_INT16, fast::TYPE_SNORM_INT16
}
 
enum  fast::PlaneType { fast::PLANE_X, fast::PLANE_Y, fast::PLANE_Z }
 

Functions

FAST_EXPORT std::string fast::getCTypeAsString (DataType type)
 
FAST_EXPORT cl::ImageFormat fast::getOpenCLImageFormat (OpenCLDevice::pointer, cl_mem_object_type imageType, DataType type, unsigned int channels)
 
FAST_EXPORT size_t fast::getSizeOfDataType (DataType type, unsigned int nrOfChannels)
 
FAST_EXPORT float fast::getDefaultIntensityLevel (DataType type)
 
FAST_EXPORT float fast::getDefaultIntensityWindow (DataType type)
 
FAST_EXPORT void fast::deleteArray (void *data, DataType type)
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

◆ fastCaseTypeMacro

#define fastCaseTypeMacro (   fastType,
  cType,
  call 
)    case fastType: {typedef cType FAST_TYPE; call;} break;

◆ fastSwitchTypeMacro

#define fastSwitchTypeMacro (   call)
Value:
fastCaseTypeMacro(TYPE_FLOAT, float, call) \
fastCaseTypeMacro(TYPE_INT8, char, call) \
fastCaseTypeMacro(TYPE_UINT8, uchar, call) \
fastCaseTypeMacro(TYPE_INT16, short, call) \
fastCaseTypeMacro(TYPE_UINT16, ushort, call) \
fastCaseTypeMacro(TYPE_SNORM_INT16, short, call) \
fastCaseTypeMacro(TYPE_UNORM_INT16, ushort, call) \

◆ NOMINMAX

#define NOMINMAX

Typedef Documentation

◆ uchar

typedef unsigned char uchar

◆ uint

typedef unsigned int uint

◆ ushort

typedef unsigned short ushort
fast::TYPE_UINT8
@ TYPE_UINT8
Definition: DataTypes.hpp:40
fast::TYPE_FLOAT
@ TYPE_FLOAT
Definition: DataTypes.hpp:39
fastCaseTypeMacro
#define fastCaseTypeMacro(fastType, cType, call)
Definition: DataTypes.hpp:53
fast::TYPE_SNORM_INT16
@ TYPE_SNORM_INT16
Definition: DataTypes.hpp:45
fast::TYPE_INT8
@ TYPE_INT8
Definition: DataTypes.hpp:41
fast::TYPE_UNORM_INT16
@ TYPE_UNORM_INT16
Definition: DataTypes.hpp:44
fast::TYPE_INT16
@ TYPE_INT16
Definition: DataTypes.hpp:43
ushort
unsigned short ushort
Definition: DataTypes.hpp:15
uchar
unsigned char uchar
Definition: DataTypes.hpp:14
fast::TYPE_UINT16
@ TYPE_UINT16
Definition: DataTypes.hpp:42