Commit d5db7c75 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Code cosmetics

parent 37073b1e
Pipeline #20865 failed with stage
in 6 minutes and 45 seconds
......@@ -120,8 +120,9 @@ def test_polar_inverted_transform():
(args.norm(), sympy.atan2(args[1]-x.shape[1]/2, args[0]-x.shape[0]/2) / sympy.pi * x.shape[1]/2))
def inv():
return lambda l: sympy.Matrix((sympy.cos(l[1] * sympy.pi / x.shape[1]*2) * l[0],
sympy.sin(l[1] * sympy.pi / x.shape[1]*2) * l[0])) + sympy.Matrix(x.shape) * 0.5
return lambda l: (sympy.Matrix((sympy.cos(l[1] * sympy.pi / x.shape[1]*2) * l[0],
sympy.sin(l[1] * sympy.pi / x.shape[1]*2) * l[0]))
+ sympy.Matrix(x.shape) * 0.5)
lenna_file = join(dirname(__file__), "test_data", "lenna.png")
lenna = skimage.io.imread(lenna_file, as_gray=True).astype(np.float32)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment