Skip to content

Add MinMaxCurvatureFlowImageFilter alternate baselines for SimpleITK#2627 - #50

Merged
blowekamp merged 1 commit into
SimpleITK:mainfrom
hjmjohnson:minmax-curvatureflow-itk6619-baselines
Jul 24, 2026
Merged

Add MinMaxCurvatureFlowImageFilter alternate baselines for SimpleITK#2627#50
blowekamp merged 1 commit into
SimpleITK:mainfrom
hjmjohnson:minmax-curvatureflow-itk6619-baselines

Conversation

@hjmjohnson

Copy link
Copy Markdown
Contributor

Alternate baseline data for SimpleITK/SimpleITK#2627 (MinMaxCurvatureFlowImageFilter outputs under ITK with the 3D stencil threshold fix, InsightSoftwareConsortium/ITK#6619).

Provenance

Both SHA512/ objects were regenerated by running BasicFilters.MinMaxCurvatureFlowImageFilter (defaults and longer tags, input Input/RA-Float.nrrd) against an ITK main build containing the 3D threshold fix, and verified byte-identical across two runs.

…cFilters_MinMaxCurvatureFlowImageFilter_longer.1.nrrd
@blowekamp
blowekamp marked this pull request as ready for review July 24, 2026 16:46
@blowekamp
blowekamp merged commit 2b218c3 into SimpleITK:main Jul 24, 2026
1 check passed
blowekamp pushed a commit to hjmjohnson/SimpleITK that referenced this pull request Aug 28, 2026
… fix

ITK commit 2a04261664 ("BUG: Fix polar angle in MinMaxCurvatureFlowFunction
threshold", merged as InsightSoftwareConsortium/ITK#6603,
InsightSoftwareConsortium/ITK#6575 item context in #6619) fixes
MinMaxCurvatureFlowFunction::ComputeThreshold normalizing the gradient
to the stencil radius (2) instead of unit length before acos(), which
had silently selected the wrong polar angle since 2002. This changes
MinMaxCurvatureFlowImageFilter output on 3D volumes.

Add the post-fix center slices as .1.nrrd alternate baselines so the
defaults and longer tests pass with both current and fixed ITK.
Verified locally: BasicFilters.MinMaxCurvatureFlowImageFilter and
Python.MinMaxCurvatureFlowImageFilter both pass against an ITK build
containing the fix, using the corrected .1.nrrd content hashes (see
below).

Note: BinaryMinMaxCurvatureFlowFunction never calls ComputeThreshold,
so it is unaffected by ITK#6603 itself. However, it inherits
MinMaxCurvatureFlowFunction's stencil radius (2) and is therefore also
perturbed by a separate, later ITK commit, 4f0b3147be ("BUG: Decouple
CurvatureFlowFunction derivative scale from radius",
InsightSoftwareConsortium/ITK#6575 item B8), which fixes
CurvatureFlowFunction::ComputeUpdate() understating the derivative by
1/radius^2 for any subclass that repurposes GetRadius() for a larger
neighborhood, as MinMaxCurvatureFlowFunction (and by inheritance
BinaryMinMaxCurvatureFlowFunction) does. BasicFilters.
BinaryMinMaxCurvatureFlowImageFilter's defaults/longer baselines will
need their own alternates for that fix; tracked as a follow-up, not
included here.

Fixup: the defaults.1.nrrd and longer.1.nrrd content-link hashes in an
earlier revision did not match the objects actually uploaded to
SimpleITK/SimpleITKExternalData#50 (stale/transcribed hashes that
resolved on no mirror), which aborted the whole superbuild at the
ExternalData fetch step and cascaded into unrelated Java/R test
failures. Corrected to the real uploaded object hashes, confirmed
against the S3 mirror and validated locally as above.
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