InsightSoftwareConsortium / ITK

Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions.
https://itk.org
Apache License 2.0
1.4k stars 661 forks source link

ENH: Extend NearestNeighborInterpolateImageFunc wrapping for RGB #4499

Closed aylward closed 5 months ago

aylward commented 5 months ago

Adding support for vector, RGB, and RGBA pixel types in wrapping of itkNearestNeighborInterpolateImageFunction. This will allow, for example, the wrapped ResampleImageFilter to be called with an RGB/RGBA pixel type image and use an nearestneighbor interpolator. Currently only the linear interpolator had RGB/RGBA wrapping.

No C++ code changes were needed.

Examples and tests already exist, e.g., ResampleImageFilterTest5 for RGBPixel type.

PR Checklist