Registry / data / unwrap

unwrap

JSON →
library0.1.1pypypiunverified

A Python library for 2D and 3D phase unwrapping using a quality-guided algorithm. Version 0.1.1, released in 2014, with no recent updates.

pip install unwrap
INSTALL
IMPORT
SIG · UNWRAP
U
unwrap
datapythonv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

unwrap2d
✓ from unwrap import unwrap2d
✗ import unwrap
Common mistake: 'import unwrap' only gives access to unwrap package, not the function directly
unwrap3d
✓ from unwrap import unwrap3d
✗ unwrapping.unwrap3d
No submodule named unwrapping exists

Basic 2D and 3D phase unwrapping with random wrapped phase data.

import numpy as np from unwrap import unwrap2d, unwrap3d # 2D example: wrapped phase in [-pi, pi) wrapped = np.random.uniform(-np.pi, np.pi, (10, 10)) unwrapped = unwrap2d(wrapped) # 3D example wrapped_3d = np.random.uniform(-np.pi, np.pi, (5, 10, 10)) unwrapped_3d = unwrap3d(wrapped_3d)
Debug
Known issues
gotchaFunctions expect input in radians (values between -pi and pi). Using degrees or other ranges will produce incorrect unwrapping without error.
fix
Ensure input is in radians, typically by converting degrees * np.pi / 180.
affects: all
gotchaThe library does not handle NaN or Inf values. Presence of such values may cause silent failures or incorrect results.
fix
Preprocess input to replace NaN/Inf with neighboring valid values or mask them before passing to unwrap.
affects: all
deprecatedLibrary is unmaintained since 2014. No support for Python 3.x beyond early versions, and no bug fixes.
fix
Consider using alternative libraries like 'skimage.restoration.unwrap_phase' or 'np.unwrap' for simpler cases.
affects: 0.1.1
Upgrade
Version history
0.1.1latest on PyPI · released Apr 6, 2014
Audit
Dependencies
numpyrequiredrequired for array operations
scipyrequiredrequired for image processing
Agent activity
24 hits · last 30 days
node
22
OpenAI (training)
1
Resources
unwrap — pip install unwrap · libregistry