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