Fix doc string example of warp_coords

This commit is contained in:
Johannes Schönberger
2012-08-26 17:33:23 +02:00
parent 772a1cb4b0
commit a0649791ae
+1 -1
View File
@@ -78,8 +78,8 @@ def warp_coords(coord_map, shape, dtype=np.float64):
... xy[:, 0] -= 10
... return xy
>>>
>>> coords = warp_coords(30, 30, 3, shift_right)
>>> image = data.lena().astype(np.float32)
>>> coords = warp_coords(shift_right, image.shape)
>>> warped_image = map_coordinates(image, coords)
"""