Skip to content

v4.0.0

Latest

Choose a tag to compare

@jcreinhold jcreinhold released this 03 Aug 16:54
· 4 commits to master since this release
50531a3

v4.0.0 — clean-slate redesign

A ground-up redesign of the package: same algorithms (better tested), new interface.

  • One CLI: eleven scripts become subcommands of intensity-normalize, with unified single-image / batch semantics.
  • New Python API: individual methods are plain functions (inorm.whitestripe(img, mask=mask)); population methods are fitted transforms (tx = inorm.nyul.fit(imgs); tx(new_img); tx.save("nyul.npz")).
  • Type-preserving: numpy in → numpy out, nibabel in → nibabel out (affine/header preserved, float64 kept float64).
  • Array-level cores for every method: pure numpy, no nibabel, for use inside your own pipelines.
  • Deterministic by default: all stochastic steps take seed= (default 0); scikit-fuzzy replaced by an in-house fuzzy c-means.
  • Saved transform state moves from .npy to stamped .npz (old files are not loadable — refit them).
  • Requires Python ≥ 3.12; pymedio support removed.

Migration guide: https://www.jcreinhold.com/intensity-normalization/migration/
Docs: https://www.jcreinhold.com/intensity-normalization/