lazyslide_models.tile_prediction.cv_features.SplitRGB

lazyslide_models.tile_prediction.cv_features.SplitRGB#

class SplitRGB(method='mean')#

Bases: _CVFeatures

split_rgb Mean red, green and blue intensity of a tile

Calculate the red, green and blue intensity of a tile, on a 0-255 scale.

Parameters:
methodstr

Name of the NumPy reduction applied to each channel, e.g. "mean", "median" or "std". Default is "mean".

columns = ('red', 'green', 'blue')#

Subclasses whose _func returns a dict set this explicitly; for the rest it is derived below from the class name, which is the same rule _process_batch uses to key its result.