Unverified Commit cd2b7f07 authored by Vitaliy Chiley's avatar Vitaliy Chiley Committed by GitHub
Browse files

spelling error (#2333)

I was reading through the code and noticed a few spelling errors
orignal -> original
maintaing -> maintaining
parent 148bac23
...@@ -306,7 +306,7 @@ def resize(img, size, interpolation=Image.BILINEAR): ...@@ -306,7 +306,7 @@ def resize(img, size, interpolation=Image.BILINEAR):
img (PIL Image): Image to be resized. img (PIL Image): Image to be resized.
size (sequence or int): Desired output size. If size is a sequence like size (sequence or int): Desired output size. If size is a sequence like
(h, w), the output size will be matched to this. If size is an int, (h, w), the output size will be matched to this. If size is an int,
the smaller edge of the image will be matched to this number maintaing the smaller edge of the image will be matched to this number maintaining
the aspect ratio. i.e, if height > width, then image will be rescaled to the aspect ratio. i.e, if height > width, then image will be rescaled to
:math:`\left(\text{size} \times \frac{\text{height}}{\text{width}}, \text{size}\right)` :math:`\left(\text{size} \times \frac{\text{height}}{\text{width}}, \text{size}\right)`
interpolation (int, optional): Desired interpolation. Default is interpolation (int, optional): Desired interpolation. Default is
...@@ -555,11 +555,11 @@ def _parse_fill(fill, img, min_pil_version): ...@@ -555,11 +555,11 @@ def _parse_fill(fill, img, min_pil_version):
def _get_perspective_coeffs(startpoints, endpoints): def _get_perspective_coeffs(startpoints, endpoints):
"""Helper function to get the coefficients (a, b, c, d, e, f, g, h) for the perspective transforms. """Helper function to get the coefficients (a, b, c, d, e, f, g, h) for the perspective transforms.
In Perspective Transform each pixel (x, y) in the orignal image gets transformed as, In Perspective Transform each pixel (x, y) in the original image gets transformed as,
(x, y) -> ( (ax + by + c) / (gx + hy + 1), (dx + ey + f) / (gx + hy + 1) ) (x, y) -> ( (ax + by + c) / (gx + hy + 1), (dx + ey + f) / (gx + hy + 1) )
Args: Args:
List containing [top-left, top-right, bottom-right, bottom-left] of the orignal image, List containing [top-left, top-right, bottom-right, bottom-left] of the original image,
List containing [top-left, top-right, bottom-right, bottom-left] of the transformed List containing [top-left, top-right, bottom-right, bottom-left] of the transformed
image image
Returns: Returns:
...@@ -582,7 +582,7 @@ def perspective(img, startpoints, endpoints, interpolation=Image.BICUBIC, fill=N ...@@ -582,7 +582,7 @@ def perspective(img, startpoints, endpoints, interpolation=Image.BICUBIC, fill=N
Args: Args:
img (PIL Image): Image to be transformed. img (PIL Image): Image to be transformed.
startpoints: List containing [top-left, top-right, bottom-right, bottom-left] of the orignal image startpoints: List containing [top-left, top-right, bottom-right, bottom-left] of the original image
endpoints: List containing [top-left, top-right, bottom-right, bottom-left] of the transformed image endpoints: List containing [top-left, top-right, bottom-right, bottom-left] of the transformed image
interpolation: Default- Image.BICUBIC interpolation: Default- Image.BICUBIC
fill (n-tuple or int or float): Pixel fill value for area outside the rotated fill (n-tuple or int or float): Pixel fill value for area outside the rotated
......
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