From 0fd19e5708f09702d1feb50a66648d8d4d61689e Mon Sep 17 00:00:00 2001 From: Juan Nunez-Iglesias Date: Sun, 26 Jan 2014 15:08:51 +1100 Subject: [PATCH] Update lineprofile plugin to use new API --- skimage/viewer/plugins/lineprofile.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/skimage/viewer/plugins/lineprofile.py b/skimage/viewer/plugins/lineprofile.py index 30a0cf21..5cc70d0c 100644 --- a/skimage/viewer/plugins/lineprofile.py +++ b/skimage/viewer/plugins/lineprofile.py @@ -1,7 +1,6 @@ import warnings import numpy as np -import scipy.ndimage as ndi from skimage.util.dtype import dtype_range from skimage import measure @@ -71,7 +70,7 @@ class LineProfile(PlotPlugin): on_change=self.line_changed) self.line_tool.end_points = np.transpose([x, y]) - scan_data = measure.profile_line(image, self.line_tool.end_points) + scan_data = measure.profile_line(image, *self.line_tool.end_points) self.reset_axes(scan_data) @@ -106,7 +105,7 @@ class LineProfile(PlotPlugin): x, y = np.transpose(end_points) self.line_tool.end_points = end_points scan = measure.profile_line(self.image_viewer.original_image, - end_points, + *end_points, linewidth=self.line_tool.linewidth) if scan.shape[1] != len(self.profile):