3 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.
This is a Python wrapper for 2D and 3D phase unwrapping code based on:
(2D) M. A. Herráez, D. R. Burton, M. J. Lalor, and M. A. Gdeisat, “Fast two-dimensional phase-unwrapping algorithm based on sorting by reliability following a noncontinuous path”, Applied Optics, Vol. 41, Issue 35, pp. 7437-7444 (2002),
(3D) H. Abdul-Rahman, M. Gdeisat, D. Burton, M. Lalor, “Fast three-dimensional phase-unwrapping algorithm based on sorting by reliability following a non-continuous path”, Proc. SPIE 5856, Optical Measurement Systems for Industrial Inspection IV, 32 (2005).
More information about the code can be found on GERI homepage: 2D, 3D. The general principle and applications are the same as those for a 1D unwrap available in numpy.
Usage
The package is based on cffi and requires it for installation:
$ pip install cffi $ pip install unwrap
The interface consists of a single function:
>>> from unwrap import unwrap >>> unwrapped_array = unwrap( ... wrapped_array, ... wrap_around_axis_0=False, ... wrap_around_axis_1=False, ... wrap_around_axis_2=False)
It takes a 2- or 3-dimensional numpy array of floats, wrapped_array, and returns an array with the same shape with the values changed by integer multiples of 2 pi such that the whole array has the least amount of jumps.
wrapped_array can be a masked array, in this case masked entries are ignored during the phase unwrapping process. This is useful if the wrapped phase data has holes or contains invalid entries.
If the optional arguments wrap_around_axis_0 etc. are set to True, then phase unwrapping takes place also across the boundaries of the specified axis, i.e., the first and last pixel along this axis are assumed to be neighbours.
Internally the wrapped array is converted to a C-contiguous array of np.float32, therefor the unwrapped array also has this data type.
Usage examples can be found in test/test_unwrap.py.
People
The original C code by the authors mentioned above has been slightly modified by Gregor Thalhammer for using it as a library. Bogdan Opanchuk changed the Python wrapper to use cffi instead of Cython and improved packaging.
Metadata
Release files for unwrap 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Files added late
3 files were uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| unwrap-0.1.1.tar.gz | 18.5 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| unwrap-0.1.1.win-amd64-py2.7.exe | Details | |||
| unwrap-0.1.1.win32-py2.7.exe | Details | |||
| unwrap-0.1.1-cp27-none-win_amd64.whl | CPython 2.7 | none | Windows x86-64 | Details |
| unwrap-0.1.1-cp27-none-macosx_10_6_intel.whl | CPython 2.7 | none | macOS 10.6+ Intel (x86-64, i386) | Details |
Total release size: 615.1 kB
Release files / unwrap-0.1.1.tar.gz
| Download URL | unwrap-0.1.1.tar.gz |
|---|---|
| Size | 18.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12aaa877c4e76dbdd8c09e3c76418ab6e82413e346a7f171e7228a03b69bd763
|
|
BLAKE2b-256 checksum How to use checksums |
0fa0c1f7d5b06ee68e0e3f64d279323f61dbca0c32053f0d6d06f56132d3f322
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / unwrap-0.1.1.win-amd64-py2.7.exe
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | unwrap-0.1.1.win-amd64-py2.7.exe |
|---|---|
| Size | 264.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48b3043679af37e857fe534598d4df04405b2dd24b490a3ec9d9f8947da5cc7b
|
|
BLAKE2b-256 checksum How to use checksums |
6ae234ed17a69ab9ce9a0ed1b4ee1f00d0ab303a72c0921dc0015dd8a8ab13a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / unwrap-0.1.1.win32-py2.7.exe
| Download URL | unwrap-0.1.1.win32-py2.7.exe |
|---|---|
| Size | 234.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4a1c4e580dbeaebda592927c42bcf4e73f24001200f384067b9a8af469c3dbc
|
|
BLAKE2b-256 checksum How to use checksums |
fb28c8df015138806f72cc98c7cd44de5bc098906981334f82fae65962822763
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / unwrap-0.1.1-cp27-none-win_amd64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | unwrap-0.1.1-cp27-none-win_amd64.whl |
|---|---|
| Size | 39.1 kB |
| Tags | CPython 2.7 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
93a4cc15745e395d92c581366e6a955f6770543fe2bb53be4b365b633abc1573
|
|
BLAKE2b-256 checksum How to use checksums |
f93ed770519e2aeba634fee67119b79b0e6095388280a0ce616380122c723cfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / unwrap-0.1.1-cp27-none-macosx_10_6_intel.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | unwrap-0.1.1-cp27-none-macosx_10_6_intel.whl |
|---|---|
| Size | 58.5 kB |
| Tags | CPython 2.7 macOS 10.6+ Intel (x86-64, i386) |
|
SHA-256 checksum How to use checksums |
6c47c21082f141a2d999c9c052cfbfc8ea23c7e7e2371fcf7ff44d73db32e5c4
|
|
BLAKE2b-256 checksum How to use checksums |
f62801326c33f66a04c7da308740641a0998608004be1b735ce6d413673b720a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |