adjust_contrast — Torchvision 0.22 documentation (original) (raw)

torchvision.transforms.functional.adjust_contrast(img: Tensor, contrast_factor: float) → Tensor[source]

Adjust contrast of an image.

Parameters:

Returns:

Contrast adjusted image.

Return type:

PIL Image or Tensor