lazyslide.models.tile_prediction.Saturation#
- class Saturation#
Bases:
_CVFeaturesCalculate the color saturation of a tile.
Saturation measures the colorfulness of an image. It is calculated by converting the image to HSV color space and taking the mean of the saturation channel. Higher values indicate more vibrant colors.
The tile can be in shape (H, W, C) for a single image or (B, C, H, W) for a batch of images.