|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Namespace providing helper functions for mapping (resampling) MITK images using MatchPoint registrations. More...
Typedefs | |
| typedef ::map::core::RegistrationBase | RegistrationType |
| MatchPoint registration base type. More... | |
| typedef ::mitk::MAPRegistrationWrapper | MITKRegistrationType |
| MITK wrapper type for MatchPoint registrations. More... | |
| typedef ::mitk::BaseGeometry | ResultImageGeometryType |
| Geometry type used for the result image grid specification. More... | |
| typedef ::mitk::Image | InputImageType |
| Input image type for mapping operations. More... | |
| typedef ::mitk::Image | ResultImageType |
| Result image type returned by mapping operations. More... | |
Functions | |
| MITKMATCHPOINTREGISTRATION_EXPORT TimeGeometry::Pointer | CreateResultTimeGeometry (const mitk::BaseData *input, const mitk::ImageMappingHelper::ResultImageGeometryType *resultGeometry) |
| Creates a TimeGeometry for the mapping result based on the input data and optional result geometry. More... | |
| MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer | map (const InputImageType *input, const RegistrationType *registration, bool throwOnOutOfInputAreaError=false, const double &paddingValue=0, const ResultImageGeometryType *resultGeometry=nullptr, bool throwOnMappingError=true, const double &errorValue=0, mitk::ImageMappingInterpolator::Type interpolatorType=mitk::ImageMappingInterpolator::Linear) |
| Maps (resamples) an input image using a MatchPoint registration. More... | |
| MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer | map (const InputImageType *input, const MITKRegistrationType *registration, bool throwOnOutOfInputAreaError=false, const double &paddingValue=0, const ResultImageGeometryType *resultGeometry=nullptr, bool throwOnMappingError=true, const double &errorValue=0, mitk::ImageMappingInterpolator::Type interpolatorType=mitk::ImageMappingInterpolator::Linear) |
| Maps (resamples) an input image using a MITK registration wrapper. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
| MITKMATCHPOINTREGISTRATION_EXPORT ResultImageGeometryType::Pointer | GenerateSuperSampledGeometry (const ResultImageGeometryType *inputGeometry, double xScaling, double yScaling, double zScaling) |
| Generates a super-sampled geometry by scaling the spacing of an existing geometry. More... | |
| MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer | refineGeometry (const InputImageType *input, const RegistrationType *registration, bool throwOnError=true) |
| Refines the geometry of an image by applying an affine registration to its Geometry3D. More... | |
| MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer | refineGeometry (const InputImageType *input, const MITKRegistrationType *registration, bool throwOnError=true) |
| MITKMATCHPOINTREGISTRATION_EXPORT bool | canRefineGeometry (const RegistrationType *registration) |
| Checks whether a registration can be used for geometry refinement. More... | |
| MITKMATCHPOINTREGISTRATION_EXPORT bool | canRefineGeometry (const MITKRegistrationType *registration) |
Namespace providing helper functions for mapping (resampling) MITK images using MatchPoint registrations.
Input image type for mapping operations.
Definition at line 61 of file mitkImageMappingHelper.h.
MITK wrapper type for MatchPoint registrations.
Definition at line 56 of file mitkImageMappingHelper.h.
| typedef ::map::core::RegistrationBase mitk::ImageMappingHelper::RegistrationType |
MatchPoint registration base type.
Definition at line 54 of file mitkImageMappingHelper.h.
Geometry type used for the result image grid specification.
Definition at line 59 of file mitkImageMappingHelper.h.
Result image type returned by mapping operations.
Definition at line 63 of file mitkImageMappingHelper.h.
| MITKMATCHPOINTREGISTRATION_EXPORT bool mitk::ImageMappingHelper::canRefineGeometry | ( | const MITKRegistrationType * | registration | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| MITKMATCHPOINTREGISTRATION_EXPORT bool mitk::ImageMappingHelper::canRefineGeometry | ( | const RegistrationType * | registration | ) |
Checks whether a registration can be used for geometry refinement.
| [in] | registration | The registration to check. |
| MITKMATCHPOINTREGISTRATION_EXPORT TimeGeometry::Pointer mitk::ImageMappingHelper::CreateResultTimeGeometry | ( | const mitk::BaseData * | input, |
| const mitk::ImageMappingHelper::ResultImageGeometryType * | resultGeometry | ||
| ) |
Creates a TimeGeometry for the mapping result based on the input data and optional result geometry.
| [in] | input | The input data whose time geometry serves as the template. |
| [in] | resultGeometry | Optional pointer to the spatial geometry for the result. If nullptr, the input geometry is used. |
| MITKMATCHPOINTREGISTRATION_EXPORT ResultImageGeometryType::Pointer mitk::ImageMappingHelper::GenerateSuperSampledGeometry | ( | const ResultImageGeometryType * | inputGeometry, |
| double | xScaling, | ||
| double | yScaling, | ||
| double | zScaling | ||
| ) |
Generates a super-sampled geometry by scaling the spacing of an existing geometry.
| [in] | inputGeometry | The geometry to super-sample. |
| [in] | xScaling | Scaling factor for the X-axis spacing. |
| [in] | yScaling | Scaling factor for the Y-axis spacing. |
| [in] | zScaling | Scaling factor for the Z-axis spacing. |
| MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer mitk::ImageMappingHelper::map | ( | const InputImageType * | input, |
| const MITKRegistrationType * | registration, | ||
| bool | throwOnOutOfInputAreaError = false, |
||
| const double & | paddingValue = 0, |
||
| const ResultImageGeometryType * | resultGeometry = nullptr, |
||
| bool | throwOnMappingError = true, |
||
| const double & | errorValue = 0, |
||
| mitk::ImageMappingInterpolator::Type | interpolatorType = mitk::ImageMappingInterpolator::Linear |
||
| ) |
Maps (resamples) an input image using a MITK registration wrapper. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| [in] | input | Image that should be mapped. |
| [in] | registration | Pointer to the MITK registration wrapper to use for mapping. |
| [in] | throwOnOutOfInputAreaError | If true, throws on out-of-input-area errors. |
| [in] | paddingValue | Padding value for out-of-input-area voxels. |
| [in] | resultGeometry | Pointer to the output grid geometry, or nullptr to use the input geometry. |
| [in] | throwOnMappingError | If true, throws on mapping errors. |
| [in] | errorValue | Value for voxels where mapping fails. |
| [in] | interpolatorType | The interpolation strategy to use. |
input must be valid. registration must be valid. | MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer mitk::ImageMappingHelper::map | ( | const InputImageType * | input, |
| const RegistrationType * | registration, | ||
| bool | throwOnOutOfInputAreaError = false, |
||
| const double & | paddingValue = 0, |
||
| const ResultImageGeometryType * | resultGeometry = nullptr, |
||
| bool | throwOnMappingError = true, |
||
| const double & | errorValue = 0, |
||
| mitk::ImageMappingInterpolator::Type | interpolatorType = mitk::ImageMappingInterpolator::Linear |
||
| ) |
Maps (resamples) an input image using a MatchPoint registration.
| [in] | input | Image that should be mapped. |
| [in] | registration | Pointer to the MatchPoint registration to use for mapping. |
| [in] | throwOnOutOfInputAreaError | If true, throws an exception when the input image does not cover the entire requested result region. If false, uses paddingValue. |
| [in] | paddingValue | Value to use for voxels outside the input image area (when not throwing). |
| [in] | resultGeometry | Pointer to the geometry defining the output grid. If nullptr, the input image geometry is used. |
| [in] | throwOnMappingError | If true, throws an exception when the registration does not cover the requested region. If false, uses errorValue. |
| [in] | errorValue | Value to use for voxels where mapping fails (when not throwing). |
| [in] | interpolatorType | The interpolation strategy to use. |
input must be valid. registration must be valid. | MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer mitk::ImageMappingHelper::refineGeometry | ( | const InputImageType * | input, |
| const MITKRegistrationType * | registration, | ||
| bool | throwOnError = true |
||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer mitk::ImageMappingHelper::refineGeometry | ( | const InputImageType * | input, |
| const RegistrationType * | registration, | ||
| bool | throwOnError = true |
||
| ) |
Refines the geometry of an image by applying an affine registration to its Geometry3D.
Instead of resampling the image voxels, this method clones the input image and transforms its geometry using the registration's direct mapping kernel. This only works if the kernel can be decomposed into an affine matrix transformation.
| [in] | input | The input image whose geometry should be refined. |
| [in] | registration | The MatchPoint registration to apply. |
| [in] | throwOnError | If true, throws an exception when the registration cannot be decomposed into an affine transform. If false, returns nullptr instead. |
throwOnError is false). input must point to a valid instance. registration must point to a valid instance.