Commit 9d37cc97 authored by ekka's avatar ekka Committed by Francisco Massa
Browse files

Fix crop and resized_crop docs in functional.py (#817)

parent b212254d
......@@ -345,10 +345,10 @@ def crop(img, i, j, h, w):
Args:
img (PIL Image): Image to be cropped.
i: Upper pixel coordinate.
j: Left pixel coordinate.
h: Height of the cropped image.
w: Width of the cropped image.
i (int): i in (i,j) i.e coordinates of the upper left corner.
j (int): j in (i,j) i.e coordinates of the upper left corner.
h (int): Height of the cropped image.
w (int): Width of the cropped image.
Returns:
PIL Image: Cropped image.
......@@ -376,10 +376,10 @@ def resized_crop(img, i, j, h, w, size, interpolation=Image.BILINEAR):
Args:
img (PIL Image): Image to be cropped.
i: i in (i,j) i.e coordinates of the upper left corner
j: j in (i,j) i.e coordinates of the upper left corner
h: Height of the cropped image.
w: Width of the cropped image.
i (int): i in (i,j) i.e coordinates of the upper left corner
j (int): j in (i,j) i.e coordinates of the upper left corner
h (int): Height of the cropped image.
w (int): Width of the cropped image.
size (sequence or int): Desired output size. Same semantics as ``resize``.
interpolation (int, optional): Desired interpolation. Default is
``PIL.Image.BILINEAR``.
......
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