FAST
3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
|
Go to the documentation of this file.
10 class OpenCLBufferAccess;
20 virtual void create(std::unique_ptr<
float[]> data,
TensorShape shape);
26 virtual void create(
const float*
const data,
TensorShape shape);
37 virtual void create(std::initializer_list<float> data);
42 virtual void expandDims(
int position = 0);
46 virtual void freeAll()
override;
48 virtual void setSpacing(VectorXf spacing);
49 virtual VectorXf getSpacing()
const;
50 virtual void deleteDimension(
int dimension);
58 virtual bool isInitialized();
62 void setAllDataToOutOfDate();
63 virtual bool hasAnyData();
64 void updateHostData();
65 virtual float* getHostDataPointer();
68 std::unordered_map<std::shared_ptr<OpenCLDevice>, cl::Buffer*>
mCLBuffers;
std::shared_ptr< ExecutionDevice > pointer
Definition: ExecutionDevice.hpp:11
friend OpenCLBufferAccess
Definition: Tensor.hpp:76
Definition: TensorShape.hpp:9
Definition: AffineTransformation.hpp:7
std::unique_ptr< float[]> m_data
Definition: Tensor.hpp:67
std::unique_ptr< TensorAccess > pointer
Definition: TensorAccess.hpp:17
VectorXf m_spacing
Definition: Tensor.hpp:73
#define FAST_OBJECT(className)
Definition: Object.hpp:9
std::unordered_map< std::shared_ptr< OpenCLDevice >, cl::Buffer * > mCLBuffers
Definition: Tensor.hpp:68
std::unordered_map< std::shared_ptr< OpenCLDevice >, bool > mCLBuffersIsUpToDate
Definition: Tensor.hpp:69
Definition: Tensor.hpp:12
TensorShape m_shape
Definition: Tensor.hpp:70
accessType
Definition: Access.hpp:5
bool mHostDataIsUpToDate
Definition: Tensor.hpp:71
friend TensorAccess
Definition: Tensor.hpp:75
Definition: SpatialDataObject.hpp:10
Definition: DataBoundingBox.hpp:13