Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkInstantiateAccessFunctions.h File Reference

Preprocessor macros for explicit template instantiation of image access functions across all supported pixel types and dimensions. More...

#include <itkCastImageFilter.h>
#include <mitkConfig.h>
#include <mitkImageToItk.h>
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/expand.hpp>
#include <boost/preprocessor/seq/for_each.hpp>
#include <boost/preprocessor/seq/for_each_product.hpp>
#include <boost/preprocessor/seq/to_tuple.hpp>

Go to the source code of this file.

Macros

#define InstantiateAccessFunctionImpl(r, itkImgFunc, type)
 
#define InstantiateAccessFunctionProductImpl(r, product)
 
#define InstantiateAccessFunctionForFixedType(itkImgFunc, pixelTypeSeq, dimSeq)
 Instantiate access function for the given pixel types and dimensions. More...
 
#define InstantiateAccessFunction(itkImgFunc)
 Instantiate access function for all datatypes and dimensions. More...
 
#define InstantiateAccessFunctionForFixedDimension(itkImgFunc, dim)
 Instantiate access function for all datatypes and a specific dimension. More...
 
#define InstantiateAccessFunctionForFixedPixelType(itkImgFunc, pixelTypeSeq)
 Instantiate access function for all given pixel types and all dimensions. More...
 
#define InstantiateAccessFunctionForIntegralPixelTypes(itkImgFunc)
 Instantiate access function for integral datatypes and all dimensions. More...
 
#define InstantiateAccessFunctionForFloatingPixelTypes(itkImgFunc)
 Instantiate access function for floating point datatypes and all dimensions. More...
 

Detailed Description

Preprocessor macros for explicit template instantiation of image access functions across all supported pixel types and dimensions.

These macros work together with the AccessByItk macro family. After defining a templated access function and a corresponding InstantiateAccessFunction_* macro, use InstantiateAccessFunction or one of its variants to generate explicit template instantiations for the desired combinations of pixel types and image dimensions.

See also
mitkImageAccessByItk.h

Definition in file mitkInstantiateAccessFunctions.h.

Macro Definition Documentation

◆ InstantiateAccessFunctionImpl

#define InstantiateAccessFunctionImpl (   r,
  itkImgFunc,
  type 
)

Definition at line 42 of file mitkInstantiateAccessFunctions.h.

◆ InstantiateAccessFunctionProductImpl

#define InstantiateAccessFunctionProductImpl (   r,
  product 
)

Definition at line 50 of file mitkInstantiateAccessFunctions.h.