From a10f1c1468da96877382fa621c1e3f396eeda576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jostein=20B=C3=B8=20Fl=C3=B8ystad?= Date: Tue, 16 Jul 2013 14:00:53 +0200 Subject: [PATCH] unwrap example: cleanup. --- doc/examples/plot_phase_unwrap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/examples/plot_phase_unwrap.py b/doc/examples/plot_phase_unwrap.py index c2aecdb5..a525a823 100644 --- a/doc/examples/plot_phase_unwrap.py +++ b/doc/examples/plot_phase_unwrap.py @@ -13,6 +13,7 @@ problem. import numpy as np from matplotlib import pyplot as plt from skimage import data, img_as_float, color, exposure +from skimage.exposure import unwrap_phase # Load an image as a floating-point grayscale @@ -22,9 +23,8 @@ image = exposure.rescale_intensity(image, out_range=(0, 4 * np.pi)) # Create a phase-wrapped image in the interval [-pi, pi) image_wrapped = np.angle(np.exp(1j * image)) # Perform phase unwrapping -image_unwrapped = exposure.unwrap_phase(image_wrapped) +image_unwrapped = unwrap_phase(image_wrapped) -# Plotting plt.figure() plt.subplot(221) plt.title('Original')