Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 9, 2024
1 parent 57ca8f1 commit abef4a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kornia/color/yuv.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def yuv420_to_rgb(imagey: Tensor, imageuv: Tensor) -> Tensor:
def yuv422_to_rgb(imagey: Tensor, imageuv: Tensor) -> Tensor:
r"""Convert an YUV422 image to RGB.
Input need to be padded to be evenly divisible by 2 vertical.
Input need to be padded to be evenly divisible by 2 vertical.
The image data is assumed to be in the range of :math:`(0, 1)` for luma (Y). The ranges of U and V are :math:`(-0.436, 0.436)` and :math:`(−0.615, 0.615)`, respectively.
YUV formula follows M/PAL values (see [BT.470-5](https://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.470-5-199802-S!!PDF-E.pdf), Table 2, items 2.5 and 2.6).
Expand Down Expand Up @@ -304,7 +304,7 @@ class RgbToYuv422(Module):
Width must be evenly disvisible by 2.
The image data is assumed to be in the range of :math:`(0, 1)`.
The image data is assumed to be in the range of :math:`(0, 1)`.
YUV formula follows M/PAL values (see [BT.470-5](https://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.470-5-199802-S!!PDF-E.pdf), Table 2, items 2.5 and 2.6).
Expand Down Expand Up @@ -332,7 +332,7 @@ class YuvToRgb(Module):
r"""Convert an image from YUV to RGB.
The image data is assumed to be in the range of :math:`(0, 1)` for luma (Y). The ranges of U and V are :math:`(-0.436, 0.436)` and :math:`(−0.615, 0.615)`, respectively.
YUV formula follows M/PAL values (see [BT.470-5](https://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.470-5-199802-S!!PDF-E.pdf), Table 2, items 2.5 and 2.6).
Returns:
Expand Down Expand Up @@ -384,9 +384,9 @@ class Yuv422ToRgb(Module):
r"""Convert an image from YUV to RGB.
Width must be evenly divisible by 2.
The image data is assumed to be in the range of :math:`(0, 1)` for luma (Y). The ranges of U and V are :math:`(-0.436, 0.436)` and :math:`(−0.615, 0.615)`, respectively.
YUV formula follows M/PAL values (see [BT.470-5](https://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.470-5-199802-S!!PDF-E.pdf), Table 2, items 2.5 and 2.6).
Returns:
Expand Down

0 comments on commit abef4a9

Please sign in to comment.