|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Preprocessor macros that dispatch a templated function call based on an image's pixel component type at run time. More...
Go to the source code of this file.
Macros | |
| #define | mitkPixelTypeMultiplex0(function, ptype) |
| Dispatch a templated function with zero extra parameters based on pixel component type. More... | |
| #define | mitkPixelTypeMultiplex1(function, ptype, param1) |
| Dispatch a templated function with one extra parameter based on pixel component type. More... | |
| #define | mitkPixelTypeMultiplex2(function, ptype, param1, param2) |
| Dispatch a templated function with two extra parameters based on pixel component type. More... | |
| #define | mitkPixelTypeMultiplex3(function, ptype, param1, param2, param3) |
| Dispatch a templated function with three extra parameters based on pixel component type. More... | |
| #define | mitkPixelTypeMultiplex4(function, ptype, param1, param2, param3, param4) |
| Dispatch a templated function with four extra parameters based on pixel component type. More... | |
| #define | mitkPixelTypeMultiplex5(function, ptype, param1, param2, param3, param4, param5) |
| Dispatch a templated function with five extra parameters based on pixel component type. More... | |
Preprocessor macros that dispatch a templated function call based on an image's pixel component type at run time.
Each macro checks the component type of a mitk::PixelType and instantiates the given templated function with the matching C++ scalar type (char, unsigned char, short, unsigned short, int, unsigned int, long int, unsigned long int, float, double).
Variants are provided for zero to five additional parameters beyond the PixelType:
mitkPixelTypeMultiplex0(function, ptype) mitkPixelTypeMultiplex1(function, ptype, param1) mitkPixelTypeMultiplex2(function, ptype, param1, param2) mitkPixelTypeMultiplex3(function, ptype, param1, param2, param3) mitkPixelTypeMultiplex4(function, ptype, param1, param2, param3, param4) mitkPixelTypeMultiplex5(function, ptype, param1, param2, param3, param4, param5) mitkPixelTypeMultiplex4 and mitkPixelTypeMultiplex5, if no component type matches, the function is called with double as a fallback to avoid compiler warnings. Definition in file mitkPixelTypeMultiplex.h.
| #define mitkPixelTypeMultiplex0 | ( | function, | |
| ptype | |||
| ) |
Dispatch a templated function with zero extra parameters based on pixel component type.
| function | The templated function to call (instantiated with the matching scalar type). |
| ptype | A mitk::PixelType whose component type drives the dispatch. |
Definition at line 44 of file mitkPixelTypeMultiplex.h.
| #define mitkPixelTypeMultiplex1 | ( | function, | |
| ptype, | |||
| param1 | |||
| ) |
Dispatch a templated function with one extra parameter based on pixel component type.
| function | The templated function to call. |
| ptype | A mitk::PixelType whose component type drives the dispatch. |
| param1 | First additional parameter forwarded to function. |
Definition at line 76 of file mitkPixelTypeMultiplex.h.
| #define mitkPixelTypeMultiplex2 | ( | function, | |
| ptype, | |||
| param1, | |||
| param2 | |||
| ) |
Dispatch a templated function with two extra parameters based on pixel component type.
| function | The templated function to call. |
| ptype | A mitk::PixelType whose component type drives the dispatch. |
| param1 | First additional parameter forwarded to function. |
| param2 | Second additional parameter forwarded to function. |
Definition at line 109 of file mitkPixelTypeMultiplex.h.
| #define mitkPixelTypeMultiplex3 | ( | function, | |
| ptype, | |||
| param1, | |||
| param2, | |||
| param3 | |||
| ) |
Dispatch a templated function with three extra parameters based on pixel component type.
| function | The templated function to call. |
| ptype | A mitk::PixelType whose component type drives the dispatch. |
| param1 | First additional parameter forwarded to function. |
| param2 | Second additional parameter forwarded to function. |
| param3 | Third additional parameter forwarded to function. |
Definition at line 143 of file mitkPixelTypeMultiplex.h.
| #define mitkPixelTypeMultiplex4 | ( | function, | |
| ptype, | |||
| param1, | |||
| param2, | |||
| param3, | |||
| param4 | |||
| ) |
Dispatch a templated function with four extra parameters based on pixel component type.
If no component type matches, falls back to double to avoid Clang compiler warnings.
| function | The templated function to call. |
| ptype | A mitk::PixelType whose component type drives the dispatch. |
| param1 | First additional parameter forwarded to function. |
| param2 | Second additional parameter forwarded to function. |
| param3 | Third additional parameter forwarded to function. |
| param4 | Fourth additional parameter forwarded to function. |
Definition at line 182 of file mitkPixelTypeMultiplex.h.
| #define mitkPixelTypeMultiplex5 | ( | function, | |
| ptype, | |||
| param1, | |||
| param2, | |||
| param3, | |||
| param4, | |||
| param5 | |||
| ) |
Dispatch a templated function with five extra parameters based on pixel component type.
If no component type matches, falls back to double to avoid Clang compiler warnings.
| function | The templated function to call. |
| ptype | A mitk::PixelType whose component type drives the dispatch. |
| param1 | First additional parameter forwarded to function. |
| param2 | Second additional parameter forwarded to function. |
| param3 | Third additional parameter forwarded to function. |
| param4 | Fourth additional parameter forwarded to function. |
| param5 | Fifth additional parameter forwarded to function. |
Definition at line 224 of file mitkPixelTypeMultiplex.h.