Wrap lines

This commit is contained in:
Johannes Schönberger
2013-05-26 10:51:42 +02:00
parent e6a7238fab
commit 6c4ed67fe8
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -493,8 +493,8 @@ class SimilarityTransform(ProjectiveTransform):
for param in (scale, rotation, translation))
if params and matrix is not None:
raise ValueError("You cannot specify the transformation matrix and "
"the implicit parameters at the same time.")
raise ValueError("You cannot specify the transformation matrix and"
" the implicit parameters at the same time.")
elif matrix is not None:
if matrix.shape != (3, 3):
raise ValueError("Invalid shape of transformation matrix.")
+2 -2
View File
@@ -35,8 +35,8 @@ cdef inline void _matrix_transform(double x, double y, double* H, double *x_,
y_[0] = yy / zz
def _warp_fast(cnp.ndarray image, cnp.ndarray H, output_shape=None, int order=1,
mode='constant', double cval=0):
def _warp_fast(cnp.ndarray image, cnp.ndarray H, output_shape=None,
int order=1, mode='constant', double cval=0):
"""Projective transformation (homography).
Perform a projective transformation (homography) of a