mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-09 12:30:07 +08:00
remove some blank lines
This commit is contained in:
@@ -52,7 +52,6 @@ class GeometricTransform(object):
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
def inverse(self, coords):
|
||||
"""Apply inverse transformation.
|
||||
|
||||
@@ -69,7 +68,6 @@ class GeometricTransform(object):
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
def __add__(self, other):
|
||||
"""Combine this transformation with another.
|
||||
|
||||
@@ -131,7 +129,6 @@ class ProjectiveTransform(GeometricTransform):
|
||||
def inverse(self, coords):
|
||||
return self._apply_mat(coords, self._inv_matrix)
|
||||
|
||||
|
||||
def estimate(self, src, dst):
|
||||
"""Set the transformation matrix with the explicit transformation
|
||||
parameters.
|
||||
@@ -185,7 +182,6 @@ class ProjectiveTransform(GeometricTransform):
|
||||
"types.")
|
||||
|
||||
|
||||
|
||||
class AffineTransform(ProjectiveTransform):
|
||||
|
||||
"""2D affine transformation of the form::
|
||||
@@ -560,4 +556,3 @@ def warp(image, inverse_map=None, map_args={}, output_shape=None, order=1,
|
||||
# The spline filters sometimes return results outside [0, 1],
|
||||
# so clip to ensure valid data
|
||||
return np.clip(mapped.squeeze(), 0, 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user