FFT based image registration
Imreg is a Python library that implements an FFT-based technique for translation, rotation and scale-invariant image registration [1].
- Author:
- License:
BSD-3-Clause
- Version:
2026.11.22
Quickstart
Install the imreg package and all dependencies from the Python Package Index:
python -m pip install -U imreg
See Examples for using the programming interface.
Source code and support are available on GitHub.
Requirements
This revision was tested with the following requirements and dependencies (other versions may work):
CPython 3.12.10, 3.13.17, 3.14.10, 3.15.2 64-bit
Numpy 2.5.5
Scipy 1.18.1
Matplotlib 3.11.2 (optional for plotting)
Revisions
2026.11.22
Transform images about center in similarity (breaking).
Return consistent translation vector from similarity (breaking).
Fix scale change check in similarity.
Support non-square images in similarity.
Validate ENVI header in imread.
Drop support for Python 3.10 and 3.11, and numpy < 2.1.
Support Python 3.14 and 3.15.
2025.1.1
Drop support for Python 3.9, support Python 3.13.
2024.5.24
Support NumPy 2.
Fix docstring examples not correctly rendered on GitHub.
2024.1.2
Add type hints.
Drop support for Python 3.8 and numpy < 1.23 (NEP29).
2022.9.27
Fix scipy.ndimage DeprecationWarning.
Notes
Imreg is no longer being actively developed.
This implementation is mainly for educational purposes.
An improved version is being developed at https://github.com/matejak/imreg_dft.
References
An FFT-based technique for translation, rotation and scale-invariant image registration. BS Reddy, BN Chatterji. IEEE Transactions on Image Processing, 5, 1266-1271, 1996
An IDL/ENVI implementation of the FFT-based algorithm for automatic image registration. H Xiea, N Hicksa, GR Kellera, H Huangb, V Kreinovich. Computers & Geosciences, 29, 1045-1055, 2003.
Image Registration Using Adaptive Polar Transform. R Matungka, YF Zheng, RL Ewing. IEEE Transactions on Image Processing, 18(10), 2009.
Examples
>>> im0 = imread('tests/data/t400')
>>> im1 = imread('tests/data/Tr19s1.3')
>>> im2, scale, angle, (t0, t1) = similarity(im0, im1)
>>> imshow(im0, im1, im2)
>>> im0 = imread('tests/data/t350380ori')
>>> im1 = imread('tests/data/t350380shf')
>>> t0, t1 = translation(im0, im1)
>>> t0, t1
(20, 50)
Metadata
Release files for imreg 2026.11.22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| imreg-2026.11.22.tar.gz | 9.2 kB | Without provenance | Details for imreg-2026.11.22.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imreg-2026.11.22-py3-none-any.whl | Python 3 | none | any | Details for imreg-2026.11.22-py3-none-any.whl |
Total release size: 18.6 kB
Release files / imreg-2026.11.22.tar.gz
| Download URL | imreg-2026.11.22.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e872311d78dbb0a06964262055e4596db4196fc3762896e224fe55918c53ce7e
|
|
BLAKE2b-256 checksum How to use checksums |
e5d183c59fcfe19cdbd9acf978fd4ac782bcd07217bb251700d564ce9614c5af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.10
|
Release files / imreg-2026.11.22-py3-none-any.whl
| Download URL | imreg-2026.11.22-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f686dddf371e07834611c50c257c1bcddcbde97b99bf81ed71d2cc061344627
|
|
BLAKE2b-256 checksum How to use checksums |
625afe53f27991a09b24093c97b3e09fc7b7e2f8ca25bd53e1afe8e3973f20bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.10
|
Security for imreg 2026.11.22
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.