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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file niftyregw-0.2.0.tar.gz.
File metadata
- Download URL: niftyregw-0.2.0.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1965488db5fe951040556d2e07f474fab499b74c6f25014e735e1ec0fb762a2b
|
|
| MD5 |
6a8491c712f9c73d117f78abc4d82b89
|
|
| BLAKE2b-256 |
6fcf365214c84ddf0d9a7ddca94451173936c026a7c61f80e71f8dc0ed7de9a8
|
Provenance
The following attestation bundles were made for niftyregw-0.2.0.tar.gz:
Publisher:
publish.yml on fepegar/niftyregw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
niftyregw-0.2.0.tar.gz -
Subject digest:
1965488db5fe951040556d2e07f474fab499b74c6f25014e735e1ec0fb762a2b - Sigstore transparency entry: 1099767008
- Sigstore integration time:
-
Permalink:
fepegar/niftyregw@9d77996accb3a7ad69a7e4cbe3f59f902c26ed67 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/fepegar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9d77996accb3a7ad69a7e4cbe3f59f902c26ed67 -
Trigger Event:
push
-
Statement type:
File details
Details for the file niftyregw-0.2.0-py3-none-any.whl.
File metadata
- Download URL: niftyregw-0.2.0-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4d04a5bdaf896e85071f8c41d7146ca71880f70f55f9acbe3a69dc09f97c531
|
|
| MD5 |
0395fe48e3055ee353ecc35a4b635d1a
|
|
| BLAKE2b-256 |
df8738e57b9766b55e75a0ea9896f153f5c7b6eded33be0bc2bee0952a08430d
|
Provenance
The following attestation bundles were made for niftyregw-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on fepegar/niftyregw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
niftyregw-0.2.0-py3-none-any.whl -
Subject digest:
d4d04a5bdaf896e85071f8c41d7146ca71880f70f55f9acbe3a69dc09f97c531 - Sigstore transparency entry: 1099767023
- Sigstore integration time:
-
Permalink:
fepegar/niftyregw@9d77996accb3a7ad69a7e4cbe3f59f902c26ed67 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/fepegar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9d77996accb3a7ad69a7e4cbe3f59f902c26ed67 -
Trigger Event:
push
-
Statement type: