ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::wasm::SupportInputTransformTypes< TPipelineFunctor, TParameterValuesSupported > Class Template Reference

#include <itkSupportInputTransformTypes.h>

Detailed Description

template<template< typename TTransform > class TPipelineFunctor, typename... TParameterValuesSupported>
class itk::wasm::SupportInputTransformTypes< TPipelineFunctor, TParameterValuesSupported >

Instantiatiate a Pipeline functor over multiple transform parameter types and dimensions and match to the input transform type.

Instantiate the PipelineFunctor (function object) over multiple transform types.
If the input transform matches these parameter types and dimensions, use the compile-time optimized pipeline for

that transform type. Otherwise, exit the pipeline with an error identifying the unsupported transform type.

Example usage:

template<typename TTransform>
class PipelineFunctor
{
public:
int operator()(itk::wasm::Pipeline & pipeline)
{
using TransformType = TTransform;
using InputTransformType = itk::wasm::InputTransform<TransformType>;
InputTransformType inputTransform;
pipeline.add_option("input-transform", inputTransform, "The input polydata")->required();
Input transform for an itk::wasm::Pipeline.

[...]

int
main(int argc, char * argv[])
{
itk::wasm::Pipeline pipeline("support-multiple", "Test supporting multiple input transform types", argc, argv);
// Supports the parameters types float, double, and dimensions 2 and 3
::Dimensions<2U, 3U>("input-transform", pipeline);
}
Instantiatiate a Pipeline functor over multiple transform parameter types and dimensions and match to...

It is assumed that the input dimension and output dimension will be the same.

Definition at line 84 of file itkSupportInputTransformTypes.h.

Static Public Member Functions

template<unsigned int... VDimensions>
static int Dimensions (const std::string &inputTransformOptionName, Pipeline &pipeline)
 

Static Private Member Functions

template<unsigned int VDimension, unsigned int... VDimensions>
static int IterateDimensions (Pipeline &pipeline, const TransformTypeJSON &transformType, bool passThrough=false)
 
template<unsigned int VDimension, typename TParameterValues, typename... TParameterValuesRest>
static int IterateParameterValueTypes (Pipeline &pipeline, const TransformTypeJSON &transformType, bool passThrough=false)
 

Member Function Documentation

◆ Dimensions()

template<template< typename TTransform > class TPipelineFunctor, typename... TParameterValuesSupported>
template<unsigned int... VDimensions>
static int itk::wasm::SupportInputTransformTypes< TPipelineFunctor, TParameterValuesSupported >::Dimensions ( const std::string & inputTransformOptionName,
Pipeline & pipeline )
inlinestatic

◆ IterateDimensions()

template<template< typename TTransform > class TPipelineFunctor, typename... TParameterValuesSupported>
template<unsigned int VDimension, unsigned int... VDimensions>
static int itk::wasm::SupportInputTransformTypes< TPipelineFunctor, TParameterValuesSupported >::IterateDimensions ( Pipeline & pipeline,
const TransformTypeJSON & transformType,
bool passThrough = false )
inlinestaticprivate

◆ IterateParameterValueTypes()

template<template< typename TTransform > class TPipelineFunctor, typename... TParameterValuesSupported>
template<unsigned int VDimension, typename TParameterValues, typename... TParameterValuesRest>
static int itk::wasm::SupportInputTransformTypes< TPipelineFunctor, TParameterValuesSupported >::IterateParameterValueTypes ( Pipeline & pipeline,
const TransformTypeJSON & transformType,
bool passThrough = false )
inlinestaticprivate

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