|
Grangeat-based 2D/3D image registration
|
A 3D texture stored for access by the CPU. More...
#include <Texture3DCPU.h>
Public Types | |
| using | Base = Texture< 3, int64_t, double > |
Public Types inherited from reg23::Texture< 3, int64_t, double > | |
| using | IntType = int64_t |
| using | FloatType = double |
| using | SizeType = Vec< int64_t, dimensionality > |
| using | VectorType = Vec< double, dimensionality > |
| using | AddressModeType = Vec< TextureAddressMode, dimensionality > |
Static Public Member Functions | |
| static Texture3DCPU | FromTensor (const at::Tensor &volume, VectorType spacing, VectorType centrePosition=VectorType::Full(0), AddressModeType addressModes=AddressModeType::Full(TextureAddressMode::ZERO)) |
Additional Inherited Members | |
Static Public Attributes inherited from reg23::Texture< 3, int64_t, double > | |
| static constexpr std::size_t | DIMENSIONALITY |
Protected Member Functions inherited from reg23::Texture< 3, int64_t, double > | |
| Texture ()=default | |
| Texture (SizeType _size, VectorType _spacing, VectorType _centrePosition={}) | |
| Texture (const Texture &)=default | |
| Texture (Texture &&) noexcept=default | |
| Texture & | operator= (const Texture &)=default |
| Texture & | operator= (Texture &&) noexcept=default |
A 3D texture stored for access by the CPU.
This object does not own the data it provides access to, it just holds a pointer to it
Both copy and move-constructable.
|
default |
|
inline |
|
default |
|
default |
|
inline |
| index | The location in the texture at which to fetch the value |
|
inline |
| texCoord | The texture coordinates at which to sample the texture |
|
inline |
| texCoord | The texture coordinates at which to sample the texture |
|
inline |
| texCoord | The texture coordinates at which to sample the texture |
|
inline |
| texCoord | The texture coordinates at which to sample the texture |
|
inlinestatic |
| volume | A 3D tensor of torch.float32s |
| spacing | A tensor of torch.float64s of size (3,) |
| centrePosition | |
| addressModes |
|
default |
|
default |
|
inline |
| texCoord | The texture coordinates at which to sample the texture |