Skip to content

STYLE: Remove ImageToImageMetricWithFeatures from Common/CostFunctions - #1454

Open
N-Dekker wants to merge 1 commit into
mainfrom
Remove-ImageToImageMetricWithFeatures
Open

STYLE: Remove ImageToImageMetricWithFeatures from Common/CostFunctions#1454
N-Dekker wants to merge 1 commit into
mainfrom
Remove-ImageToImageMetricWithFeatures

Conversation

@N-Dekker

Copy link
Copy Markdown
Member

It appears unused. It wasn't even included with compilation.

It appears unused. It wasn't even included with compilation.
@N-Dekker

Copy link
Copy Markdown
Member Author

@mstaring @stefanklein ImageToImageMetricWithFeatures appears to be one of the very few ImageToImageMetric metrics that does not use an image sampler. So it might have been an interesting metric in the context of issue #481 and pull request #1453. However, this metric was never used. It wasn't even compiled. Is it OK if I remove it from the main branch?

@stefanklein

stefanklein commented Jun 24, 2026 via email

Copy link
Copy Markdown
Member

@N-Dekker

N-Dekker commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

Was it used by any experimental metrics? Or metrics that are not turned on by default?

In the current main tree, when doing an exhausting text search for "ImageToImageMetricWithFeatures" (including everything that is OFF by default), I cannot find any hit, other than in "itkImageToImageMetricWithFeatures.h", "itkImageToImageMetricWithFeatures.hxx", and Common/CMakeLists.txt 🤷

Just checked out an older version of the elastix source tree, at fdc611b (28-7-2008, so before my involvement). Same result: ImageToImageMetricWithFeatures is not used.

Of course, if it's still of interest, maybe we should use it! But otherwise, it's easier to remove it from the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants