def __init__(self, threshold, level, integration=IntegrationType.MEAN): UnaryPredicate1D.__init__(self) self._threshold = threshold self._level = level self._integration = integration self._func = GetSteerableViewMapDensityF1D(self._level, self._integration)
def __call__(self, inter): func = GetSteerableViewMapDensityF1D(self._level, self._integration) return (func(inter) < self._threshold)