Classes | Typedefs
mirtk::TernaryVoxelFunction Namespace Reference

Classes

struct  Diff
 
struct  Div
 
struct  Mul
 
struct  Sum
 

Typedefs

typedef Mul Prod
 Alternative name for Mul voxel function.
 

Detailed Description

These basic ternary voxel functions can be used as VoxelFunc template parameter of the ternary ForEachVoxel function templates with three image arguments, e.g.:

GreyImage input1(attr);
GreyImage input2(attr);
GreyImage ouptut(attr);
// Compute voxel-wise sum of input1 and input2
TernaryVoxelFunction::Sum sum;
ForEachVoxel(input1, input2, output, sum);
// Compute voxel-wise input1/input2 for each foreground voxel
TernaryVoxelFunction::Div div;
ParallelForEachVoxelInside(input1, input2, output, div);