@@ -306,7 +306,7 @@ def resize(img, size, interpolation=Image.BILINEAR):
306
306
img (PIL Image): Image to be resized.
307
307
size (sequence or int): Desired output size. If size is a sequence like
308
308
(h, w), the output size will be matched to this. If size is an int,
309
- the smaller edge of the image will be matched to this number maintaing
309
+ the smaller edge of the image will be matched to this number maintaining
310
310
the aspect ratio. i.e, if height > width, then image will be rescaled to
311
311
:math:`\left(\text{size} \times \frac{\text{height}}{\text{width}}, \text{size}\right)`
312
312
interpolation (int, optional): Desired interpolation. Default is
@@ -555,11 +555,11 @@ def _parse_fill(fill, img, min_pil_version):
555
555
def _get_perspective_coeffs (startpoints , endpoints ):
556
556
"""Helper function to get the coefficients (a, b, c, d, e, f, g, h) for the perspective transforms.
557
557
558
- In Perspective Transform each pixel (x, y) in the orignal image gets transformed as,
558
+ In Perspective Transform each pixel (x, y) in the original image gets transformed as,
559
559
(x, y) -> ( (ax + by + c) / (gx + hy + 1), (dx + ey + f) / (gx + hy + 1) )
560
560
561
561
Args:
562
- List containing [top-left, top-right, bottom-right, bottom-left] of the orignal image,
562
+ List containing [top-left, top-right, bottom-right, bottom-left] of the original image,
563
563
List containing [top-left, top-right, bottom-right, bottom-left] of the transformed
564
564
image
565
565
Returns:
@@ -582,7 +582,7 @@ def perspective(img, startpoints, endpoints, interpolation=Image.BICUBIC, fill=N
582
582
583
583
Args:
584
584
img (PIL Image): Image to be transformed.
585
- startpoints: List containing [top-left, top-right, bottom-right, bottom-left] of the orignal image
585
+ startpoints: List containing [top-left, top-right, bottom-right, bottom-left] of the original image
586
586
endpoints: List containing [top-left, top-right, bottom-right, bottom-left] of the transformed image
587
587
interpolation: Default- Image.BICUBIC
588
588
fill (n-tuple or int or float): Pixel fill value for area outside the rotated
0 commit comments