lazyslide_models.tile_prediction.cv_features.Saturation#
- class Saturation#
Bases:
_CVFeaturessaturation
Calculate 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.