mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
image_unwrapped created as ndarray always
In unwrap_phase the image_unwrapped variable is created as an ndarray even when image is a masked array.
This commit is contained in:
@@ -94,7 +94,8 @@ def unwrap_phase(image, wrap_around=False, seed=None):
|
||||
|
||||
image_not_masked = np.asarray(
|
||||
np.ma.getdata(image), dtype=np.double, order='C')
|
||||
image_unwrapped = np.empty_like(image, dtype=np.double, order='C')
|
||||
image_unwrapped = np.empty_like(image, dtype=np.double, order='C',
|
||||
subok=False)
|
||||
|
||||
if image.ndim == 1:
|
||||
unwrap_1d(image_not_masked, image_unwrapped)
|
||||
|
||||
Reference in New Issue
Block a user