Commit f1b59075 authored by Vishwak Srinivasan's avatar Vishwak Srinivasan Committed by Soumith Chintala
Browse files

Fix links to pillow docs (#554)

parent cd1f58f4
...@@ -602,7 +602,7 @@ def rotate(img, angle, resample=False, expand=False, center=None): ...@@ -602,7 +602,7 @@ def rotate(img, angle, resample=False, expand=False, center=None):
Origin is the upper left corner. Origin is the upper left corner.
Default is the center of the image. Default is the center of the image.
.. _filters: http://pillow.readthedocs.io/en/3.4.x/handbook/concepts.html#filters .. _filters: https://pillow.readthedocs.io/en/latest/handbook/concepts.html#filters
""" """
......
...@@ -804,8 +804,7 @@ class RandomRotation(object): ...@@ -804,8 +804,7 @@ class RandomRotation(object):
If degrees is a number instead of sequence like (min, max), the range of degrees If degrees is a number instead of sequence like (min, max), the range of degrees
will be (-degrees, +degrees). will be (-degrees, +degrees).
resample ({PIL.Image.NEAREST, PIL.Image.BILINEAR, PIL.Image.BICUBIC}, optional): resample ({PIL.Image.NEAREST, PIL.Image.BILINEAR, PIL.Image.BICUBIC}, optional):
An optional resampling filter. An optional resampling filter. See `filters`_ for more information.
See http://pillow.readthedocs.io/en/3.4.x/handbook/concepts.html#filters
If omitted, or if the image has mode "1" or "P", it is set to PIL.Image.NEAREST. If omitted, or if the image has mode "1" or "P", it is set to PIL.Image.NEAREST.
expand (bool, optional): Optional expansion flag. expand (bool, optional): Optional expansion flag.
If true, expands the output to make it large enough to hold the entire rotated image. If true, expands the output to make it large enough to hold the entire rotated image.
...@@ -814,6 +813,9 @@ class RandomRotation(object): ...@@ -814,6 +813,9 @@ class RandomRotation(object):
center (2-tuple, optional): Optional center of rotation. center (2-tuple, optional): Optional center of rotation.
Origin is the upper left corner. Origin is the upper left corner.
Default is the center of the image. Default is the center of the image.
.. _filters: https://pillow.readthedocs.io/en/latest/handbook/concepts.html#filters
""" """
def __init__(self, degrees, resample=False, expand=False, center=None): def __init__(self, degrees, resample=False, expand=False, center=None):
...@@ -880,10 +882,12 @@ class RandomAffine(object): ...@@ -880,10 +882,12 @@ class RandomAffine(object):
If degrees is a number instead of sequence like (min, max), the range of degrees If degrees is a number instead of sequence like (min, max), the range of degrees
will be (-degrees, +degrees). Will not apply shear by default will be (-degrees, +degrees). Will not apply shear by default
resample ({PIL.Image.NEAREST, PIL.Image.BILINEAR, PIL.Image.BICUBIC}, optional): resample ({PIL.Image.NEAREST, PIL.Image.BILINEAR, PIL.Image.BICUBIC}, optional):
An optional resampling filter. An optional resampling filter. See `filters`_ for more information.
See http://pillow.readthedocs.io/en/3.4.x/handbook/concepts.html#filters
If omitted, or if the image has mode "1" or "P", it is set to PIL.Image.NEAREST. If omitted, or if the image has mode "1" or "P", it is set to PIL.Image.NEAREST.
fillcolor (int): Optional fill color for the area outside the transform in the output image. (Pillow>=5.0.0) fillcolor (int): Optional fill color for the area outside the transform in the output image. (Pillow>=5.0.0)
.. _filters: https://pillow.readthedocs.io/en/latest/handbook/concepts.html#filters
""" """
def __init__(self, degrees, translate=None, scale=None, shear=None, resample=False, fillcolor=0): def __init__(self, degrees, translate=None, scale=None, shear=None, resample=False, fillcolor=0):
......
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