|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Internal helper class for executing two-image arithmetic operations with ITK filters. More...
#include <mitkArithmeticOperation.h>
Public Types | |
| enum | OperationsEnum { Add2 , Sub2 , Mult , Div , AddValue , SubValue , MultValue , DivValue , PowValue , Tan , ATan , Cos , ACos , Sin , ASin , Square , Sqrt , Abs , Exp , ExpNeg , Log10 } |
| Enumeration of all supported arithmetic operations. More... | |
Public Member Functions | |
| void | CallExecuteTwoImageFilter (mitk::Image::Pointer imageA, mitk::Image::Pointer imageB) |
| Execute a two-image filter operation using ITK access macros. More... | |
| template<typename TPixel1 , unsigned int VImageDimension1, typename TPixel2 , unsigned int VImageDimension2> | |
| void | ExecuteTwoImageFilter (itk::Image< TPixel1, VImageDimension1 > *imageA, itk::Image< TPixel2, VImageDimension2 > *imageB) |
| Internal templated method that executes the two-image filter with matched pixel types. More... | |
| template<typename DefaultFunctorType , typename DoubleFunctorType , typename Image1Type , typename Image2Type , typename DoubleImageType > | |
| void | ExecuteTwoImageFilterWithFunctor (Image1Type *imageA, Image2Type *imageB) |
| Internal templated method that applies a functor-based binary filter to two images. More... | |
Public Attributes | |
| mitk::Image::Pointer | m_ResultImage |
| The result image produced by the most recent filter execution. More... | |
| OperationsEnum | m_Algorithm |
| The algorithm/operation to execute. More... | |
| bool | m_GenerateDoubleOutput |
| If true, produce output with double pixel type instead of the input pixel type. More... | |
Internal helper class for executing two-image arithmetic operations with ITK filters.
This class provides the non-static infrastructure needed to dispatch two-image arithmetic operations through the ITK image access macros. It handles dimension-matching, pixel-type casting, and functor-based binary filter execution.
Definition at line 289 of file mitkArithmeticOperation.h.
Enumeration of all supported arithmetic operations.
Definition at line 294 of file mitkArithmeticOperation.h.
| void mitk::NonStaticArithmeticOperation::CallExecuteTwoImageFilter | ( | mitk::Image::Pointer | imageA, |
| mitk::Image::Pointer | imageB | ||
| ) |
Execute a two-image filter operation using ITK access macros.
Dispatches to the appropriate ITK access macro based on the image dimensionality (1D through 4D).
| [in] | imageA | The first input image. |
| [in] | imageB | The second input image (must have same dimensionality as imageA). |
| mitk::Exception | if the images have different dimensionalities or unsupported dimension. |
| void mitk::NonStaticArithmeticOperation::ExecuteTwoImageFilter | ( | itk::Image< TPixel1, VImageDimension1 > * | imageA, |
| itk::Image< TPixel2, VImageDimension2 > * | imageB | ||
| ) |
Internal templated method that executes the two-image filter with matched pixel types.
| TPixel1 | Pixel type of the first image. |
| VImageDimension1 | Dimensionality of the first image. |
| TPixel2 | Pixel type of the second image. |
| VImageDimension2 | Dimensionality of the second image. |
| [in] | imageA | Pointer to the first ITK image. |
| [in] | imageB | Pointer to the second ITK image. |
| void mitk::NonStaticArithmeticOperation::ExecuteTwoImageFilterWithFunctor | ( | Image1Type * | imageA, |
| Image2Type * | imageB | ||
| ) |
Internal templated method that applies a functor-based binary filter to two images.
| DefaultFunctorType | The functor type producing same-type output as the first input. |
| DoubleFunctorType | The functor type producing double output. |
| Image1Type | ITK image type of the first input. |
| Image2Type | ITK image type of the second input. |
| DoubleImageType | ITK image type for double output. |
| [in] | imageA | Pointer to the first ITK image. |
| [in] | imageB | Pointer to the second ITK image. |
| OperationsEnum mitk::NonStaticArithmeticOperation::m_Algorithm |
The algorithm/operation to execute.
Definition at line 359 of file mitkArithmeticOperation.h.
| bool mitk::NonStaticArithmeticOperation::m_GenerateDoubleOutput |
If true, produce output with double pixel type instead of the input pixel type.
Definition at line 361 of file mitkArithmeticOperation.h.
| mitk::Image::Pointer mitk::NonStaticArithmeticOperation::m_ResultImage |
The result image produced by the most recent filter execution.
Definition at line 357 of file mitkArithmeticOperation.h.