lazyslide.cv.scorer.Contrast#
- class Contrast(fraction_threshold=0.05, lower_percentile=1, upper_percentile=99)#
Bases:
ScorerBaseCalculate the contrast of a patch.
Contrast is calculated as the standard deviation of the pixel values.
- Parameters:
- thresholdfloat
Threshold to determine if a patch is contrasted or not.
- apply(patch, mask=None)#
The scorer will return the scores and the bool value indicating of QC