Skip to main content

niftyregw

Pythonic wrapper for NiftyReg, providing a modern CLI and Python API for medical image registration.

NiftyReg is a suite of tools for efficient medical image registration, developed at King's College London.

Installation

pip install niftyregw

Or with uv:

uv pip install niftyregw

CLI

niftyregw --help

Affine registration

niftyregw aladin \
  --reference ref.nii.gz \
  --floating flo.nii.gz \
  --output-affine affine.txt \
  --output-result result.nii.gz

Non-rigid registration

niftyregw f3d \
  --reference ref.nii.gz \
  --floating flo.nii.gz \
  --input-affine affine.txt \
  --output-cpp cpp.nii.gz \
  --output-result result.nii.gz

All subcommands

Subcommand Description
install Download and install NiftyReg binaries
aladin Block-matching global (affine/rigid) registration
f3d Fast Free-Form Deformation non-rigid registration
measure Compute similarity measures between images
jacobian Compute Jacobian-based maps from transformations
resample Resample an image with a given transformation
tools Image manipulation tools
average Average images or transformations
transform Manipulate and compose transformations

Python

from niftyregw import reg_aladin

reg_aladin(
    reference="ref.nii.gz",
    floating="flo.nii.gz",
    output_affine="affine.txt",
    output_result="result.nii.gz",
    rigid_only=True,
)

For any binary, use the generic run function:

from niftyregw import run

run("reg_f3d", "-ref", "ref.nii.gz", "-flo", "flo.nii.gz")

Metadata

Release files for niftyregw 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for niftyregw 0.2.0
File Size Uploaded
niftyregw-0.2.0.tar.gz 16.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for niftyregw 0.2.0
File Interpreter ABI Platform
niftyregw-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 40.8 kB

Release files / niftyregw-0.2.0.tar.gz

Download URL niftyregw-0.2.0.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1965488db5fe951040556d2e07f474fab499b74c6f25014e735e1ec0fb762a2b
BLAKE2b-256 checksum
How to use checksums
6fcf365214c84ddf0d9a7ddca94451173936c026a7c61f80e71f8dc0ed7de9a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 14, 2026.

Transparency log

Release files / niftyregw-0.2.0-py3-none-any.whl

Download URL niftyregw-0.2.0-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4d04a5bdaf896e85071f8c41d7146ca71880f70f55f9acbe3a69dc09f97c531
BLAKE2b-256 checksum
How to use checksums
df8738e57b9766b55e75a0ea9896f153f5c7b6eded33be0bc2bee0952a08430d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page