

def _process(self, matrix, key=None):
    if (not isinstance(matrix, Image)):
        raise TypeError('The threshold operation requires a Image as input.')
    arr = matrix.data
    high = (np.ones(arr.shape) * self.p.high)
    low = (np.ones(arr.shape) * self.p.low)
    thresholded = np.where((arr > thresholded.p.level), high, low)
    return matrix.clone(thresholded, group=self.p.group)

dataset/ETHPy150Open ioam/holoviews/holoviews/operation/element.py threshold._process/VarMisuse@89/110 `self`->`thresholded`