Static Public Member Functions | List of all members
mirtk::VoxelCaster< TIn, TOut > Struct Template Reference

Auxiliary template class for partial voxel_cast specialization. More...

#include <VoxelCast.h>

Collaboration diagram for mirtk::VoxelCaster< TIn, TOut >:
Collaboration graph

Static Public Member Functions

static TOut Convert (const TIn &value)
 

Detailed Description

template<class TIn, class TOut>
struct mirtk::VoxelCaster< TIn, TOut >

Auxiliary template class for partial voxel_cast specialization.

Definition at line 42 of file VoxelCast.h.

Member Function Documentation

§ Convert()

template<class TIn , class TOut >
static TOut mirtk::VoxelCaster< TIn, TOut >::Convert ( const TIn &  value)
inlinestatic

By default, use static_cast to convert voxel value from one type to another. If the value is out of the range which can be represented by the output type, the minium/maximum value of the output type is returned instead.

Definition at line 47 of file VoxelCast.h.


The documentation for this struct was generated from the following file: