lazyslide_models.tile_prediction.cv_features.Entropy

Contents

lazyslide_models.tile_prediction.cv_features.Entropy#

class Entropy#

Bases: _CVFeatures

entropy

Calculate the entropy of a tile.

Entropy is a statistical measure of randomness that can be used to characterize the texture of an image. Higher entropy indicates more complex textures and potentially more information content.

The tile can be in shape (H, W, C) for a single image or (B, C, H, W) for a batch of images.