RandomEqualize¶
- class torchaug.transforms.RandomEqualize(p=0.5, batch_inplace=False, batch_transform=False)[source]¶
Equalize the histogram of the given image or video with a given probability.
The input is expected to have […, 1 or 3, H, W] shape, where … means an arbitrary number of leading dimensions.
- Parameters:
p (
float, optional) – probability of the image being equalized. Default:0.5batch_inplace (
bool, optional) – whether to apply the batch transform in-place. Does not prevent functionals to make copy but can reduce time and memory consumption. Default:Falsebatch_transform (
bool, optional) – whether to apply the transform in batch mode. Default:False