FAST
3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
|
Go to the documentation of this file.
3 #include <eigen3/unsupported/Eigen/CXX11/Tensor>
10 template<
int NumDimensions>
11 using TensorData = Eigen::TensorMap<Eigen::Tensor<float, NumDimensions, Eigen::RowMajor>>;
17 typedef std::unique_ptr<TensorAccess>
pointer;
23 template <
int NumDimensions>
26 std::shared_ptr<Tensor> m_tensor;
32 template <
int NumDimensions>
35 throw Exception(
"Dimension mismatch for Eigen tensor in TensorAccess::getData<#Dimension>().");
38 Eigen::array<int64_t, NumDimensions> sizes;
40 sizes[i] = m_shape[i];
Definition: Exception.hpp:15
Definition: TensorShape.hpp:9
Definition: AffineTransformation.hpp:7
std::unique_ptr< TensorAccess > pointer
Definition: TensorAccess.hpp:17
int getDimensions() const
Definition: Tensor.hpp:12
Definition: TensorAccess.hpp:15
Eigen::TensorMap< Eigen::Tensor< float, NumDimensions, Eigen::RowMajor > > TensorData
Definition: TensorAccess.hpp:11
TensorData< NumDimensions > getData() const
Definition: TensorAccess.hpp:33