ENH: Add Python wrapping for ObjectToObjectMultiMetricv4 with explicit TVirtualImage#5653
ENH: Add Python wrapping for ObjectToObjectMultiMetricv4 with explicit TVirtualImage#5653
Conversation
|
@copilot specify the third template parameter TVirtualImage, based on the wrapped image types. Also, add a test per the example in the pull request comment. |
Updated in commit d6af876:
|
de52d8f to
fc7fbd3
Compare
|
@copilot fix the wrapping of |
Updated in commit ae3dca7:
|
63d8cd5 to
c197236
Compare
c197236 to
3eb11d5
Compare
3eb11d5 to
ec73b21
Compare
Add wrapping for ObjectToObjectMultiMetricv4 with explicit TVirtualImage template parameter. Also add TVirtualImage to ImageToImageMetricv4 and its derived classes (MeanSquares, Mattes, Correlation, Demons, ANTS Neighborhood Correlation, Joint Histogram MI) so they can be used together correctly. Includes a Python test exercising instantiation, metric composition, and weight configuration. Co-authored-by: thewtex <25432+thewtex@users.noreply.github.com>
ec73b21 to
ab311bf
Compare
ObjectToObjectMultiMetricv4 was not wrapped for Python, limiting multi-metric registration to third-party libraries like ANTsPy. Additionally, ImageToImageMetricv4 classes were wrapped without explicit TVirtualImage parameter specification.
Description
This PR adds Python wrapping for the
ObjectToObjectMultiMetricv4class and updates allImageToImageMetricv4derived classes to include explicit TVirtualImage parameter specification, enabling multi-metric registration workflows directly in ITK Python with consistent template parameter usage.Changes
itkObjectToObjectMultiMetricv4.wrapinModules/Registration/Metricsv4/wrapping/ImageToImageMetricv4derived classes to include explicit TVirtualImage parameter:itkImageToImageMetricv4.wrapitkMeanSquaresImageToImageMetricv4.wrapitkCorrelationImageToImageMetricv4.wrapitkDemonsImageToImageMetricv4.wrapitkANTSNeighborhoodCorrelationImageToImageMetricv4.wrapitkJointHistogramMutualInformationImageToImageMetricv4.wrapitkMattesMutualInformationImageToImageMetricv4.wrapitk::Image<float/double, dimension>)itkObjectToObjectMultiMetricv4Test.pydemonstrating usage:Usage Example
PR Checklist
Fixes #5652
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.