Skip to main content

Thin wrapper of NiftyReg with Python and CLI interfaces.

Project description

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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

niftyregw-0.1.3.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

niftyregw-0.1.3-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file niftyregw-0.1.3.tar.gz.

File metadata

  • Download URL: niftyregw-0.1.3.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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}

File hashes

Hashes for niftyregw-0.1.3.tar.gz
Algorithm Hash digest
SHA256 29389ebbf7ce9d1b9eb5f0d1ff319d34bbb5412cccdb04756501aa30b5537f8b
MD5 88750d50ce7ae2b08d01b5d60058e665
BLAKE2b-256 05c08c02acdc289a1315ddf631ce40e2bb1569c9ef6e54bc79d297bc8cfd1813

See more details on using hashes here.

Provenance

The following attestation bundles were made for niftyregw-0.1.3.tar.gz:

Publisher: publish.yml on fepegar/niftyregw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file niftyregw-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: niftyregw-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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}

File hashes

Hashes for niftyregw-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bddf3c144b051c9d647677cdef8334de029583eec102600085316891d180f6f0
MD5 7d56c793d66adfd90baeb6a53bac16e6
BLAKE2b-256 2cdc04b604b9341f2472f7148ef8b8daf18512d90461d7d663c657175c2cff82

See more details on using hashes here.

Provenance

The following attestation bundles were made for niftyregw-0.1.3-py3-none-any.whl:

Publisher: publish.yml on fepegar/niftyregw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page