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:
Jonathan Helmus
2015-01-21 19:37:23 -06:00
parent 8eebb17bac
commit 738953b946
+2 -1
View File
@@ -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)