CTL  0.6.1
Computed Tomography Library
Classes | Functions
voxelvolume.h File Reference
#include "chunk2d.h"
#include "voxelvolume.tpp"
Include dependency graph for voxelvolume.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CTL::VoxelVolumeDimensions
 
struct  CTL::VoxelVolumeVoxelSize
 
struct  CTL::VoxelVolumeOffset
 
class  CTL::VoxelVolume< T >
 The VoxelVolume class provides a simple container for storage of voxelized 3D volume data. More...
 
class  CTL::VoxelVolume< T >::VoxelIterator< IteratorType >
 
struct  CTL::VoxelCoordinates
 
struct  CTL::VoxelIndex
 
class  CTL::VoxelVolume< T >::VoxelIterator< IteratorType >
 

Functions

template<typename ToType , typename FromType , typename ConversionFun = ToType (*)(const FromType&)>
VoxelVolume< ToType > CTL::assist::convertTo (const VoxelVolume< FromType > &volume, ConversionFun f)
 Returns a VoxelVolume<ToType>, where ToType must be specified as a template parameter. More...
 
float CTL::assist::interpolate3D (const VoxelVolume< float > &volume, const mat::Matrix< 3, 1 > &position)
 
float CTL::assist::interpolate3D (const VoxelVolume< float > &volume, double x, double y, double z)
 

Function Documentation

◆ convertTo()

template<typename ToType , typename FromType , typename ConversionFun = ToType (*)(const FromType&)>
VoxelVolume< ToType > CTL::assist::convertTo ( const VoxelVolume< FromType > &  volume,
ConversionFun  f 
)

Returns a VoxelVolume<ToType>, where ToType must be specified as a template parameter.

The conversion from volume is performed element-wise using the callable f. If f is not passed as a second argument, the default is a static_cast<ToType> operation.

Besides the converted data, all properties of volume (voxel size, offset) are copied to the returned object.