Exemple #1
0
 def __init__(self,
              threshold,
              orientation,
              level,
              integration=IntegrationType.MEAN,
              sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._func = GetDirectionalViewMapDensityF1D(orientation, level,
                                                  integration, sampling)
Exemple #2
0
 def __call__(self, inter):
     func = GetDirectionalViewMapDensityF1D(self._orientation, self._level, self._integration)
     return (func(inter) < self._threshold)