lazyslide.models.tile_prediction.cv_features.SplitRGB

Contents

lazyslide.models.tile_prediction.cv_features.SplitRGB#

class SplitRGB(method='mean')#

Bases: _CVFeatures

Calculate the RGB value of a tile.

Brightness is calculated as the mean of the pixel values.

Parameters:
methodstr

Method to calculate the RGB value. Default is “mean”.

dimstr

Dimension of the image. Default is “xyc”.

:octicon:`check-circle-fill;1em;sd-text-success;`