lazyslide_models.tile_prediction.cv_features.SplitRGB

Contents

lazyslide_models.tile_prediction.cv_features.SplitRGB#

class SplitRGB(method='mean')#

Bases: _CVFeatures

split_rgb

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”.