lazyslide.cv.scorer.SplitRGB

lazyslide.cv.scorer.SplitRGB#

class SplitRGB(threshold=(0, 0, 0), method='mean', dim='xyc')#

Bases: ScorerBase

Calculate the RGB value of a patch.

Brightness is calculated as the mean of the pixel values.

The patch need to be in shape (H, W, 3).

Parameters:
red_thresholdfloat

Threshold to determine if a patch is red enough.

apply(patch, mask=None)#

The scorer will return the scores and the bool value indicating of QC