← Back to all transforms
Solarize
Description
Invert all pixel values above a threshold. Args: threshold: range for solarizing threshold. If threshold is a single value, the range will be [1, threshold]. Default: 128. p: probability of applying the transform. Default: 0.5. Targets: image Image types: uint8, float32
Parameters
- p: float (default: 0.5)
- threshold: int | tuple[int, int] | float | tuple[float, float] (default: (128, 128))
Targets
- Image
Try it out
Original Image (width = 484, height = 733):
Transformed Image:
Transform not yet applied