anomalib.post_processing.normalization.min_max¶
Tools for min-max normalization.
Module Contents¶
Functions¶
|
Apply min-max normalization and shift the values such that the threshold value is centered at 0.5. |
- anomalib.post_processing.normalization.min_max.normalize(targets: Union[numpy.ndarray, torch.Tensor, numpy.float32], threshold: Union[numpy.ndarray, torch.Tensor, float], min_val: Union[numpy.ndarray, torch.Tensor, float], max_val: Union[numpy.ndarray, torch.Tensor, float]) Union[numpy.ndarray, torch.Tensor][source]¶
Apply min-max normalization and shift the values such that the threshold value is centered at 0.5.