Exemplo n.º 1
0
 def __init__(self, *predicates):
     UnaryPredicate1D.__init__(self)
     self.predicates = predicates
     # there are cases in which only one predicate is supplied (in the parameter editor)
     if len(self.predicates) < 1:
         raise ValueError("Expected one or more UnaryPredicate1D, got ",
                          len(predicates))
Exemplo n.º 2
0
 def __init__(self, wsize, threshold, functor, funcmin=0.0, funcmax=1.0, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._threshold = float(threshold)
     self._functor = functor
     self._funcmin = float(funcmin)
     self._funcmax = float(funcmax)
     self._func = DensityF1D(wsize, integration)
Exemplo n.º 3
0
 def __init__(self, *predicates):
     UnaryPredicate1D.__init__(self)
     self.predicates = predicates
     correct_types = all(isinstance(p, UnaryPredicate1D) for p in self.predicates)
     if not (correct_types and predicates):
         raise TypeError("%s: Expected one or more UnaryPredicate1D, got %r" %
                 (self.__class__.__name__, self.predicates))
Exemplo n.º 4
0
 def __init__(self, threshold, orientation, level, integration=IntegrationType.MEAN, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._orientation = orientation
     self._level = level
     self._integration = integration
     self._sampling = sampling
Exemplo n.º 5
0
 def __init__(self, threshold, level, integration=IntegrationType.MEAN, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._level = level
     self._integration = integration
     self._sampling = sampling
     self._func = GetCompleteViewMapDensityF1D(self._level, self._integration, self._sampling) # 2.0 is the smpling
Exemplo n.º 6
0
 def __init__(self, wsize, threshold, functor, funcmin=0.0, funcmax=1.0, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._threshold = float(threshold)
     self._functor = functor
     self._funcmin = float(funcmin)
     self._funcmax = float(funcmax)
     self._func = DensityF1D(wsize, integration)
Exemplo n.º 7
0
 def __init__(self, id):
     UnaryPredicate1D.__init__(self)
     if not isinstance(id, Id):
         raise TypeError(
             "pyIsOccludedByUP1D expected freestyle.types.Id, not " +
             type(id).__name__)
     self._id = id
Exemplo n.º 8
0
 def __init__(self, *predicates):
     UnaryPredicate1D.__init__(self)
     self.predicates = predicates
     correct_types = all(isinstance(p, UnaryPredicate1D) for p in self.predicates)
     if not (correct_types and predicates):
         raise TypeError("%s: Expected one or more UnaryPredicate1D, got %r" %
                         (self.__class__.__name__, self.predicates))
Exemplo n.º 9
0
 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)
Exemplo n.º 10
0
 def __init__(self,
              threshold,
              level,
              integration=IntegrationType.MEAN,
              sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._func = GetCompleteViewMapDensityF1D(level, integration, sampling)
Exemplo n.º 11
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)
Exemplo n.º 12
0
 def __init__(self,
              wsize,
              threshold,
              integration=IntegrationType.MEAN,
              sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._wsize = wsize
     self._threshold = threshold
     self._integration = integration
     self._func = DensityF1D(self._wsize, self._integration, sampling)
Exemplo n.º 13
0
 def __init__(self,
              threshold,
              orientation,
              level,
              integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._orientation = orientation
     self._level = level
     self._integration = integration
Exemplo n.º 14
0
 def __init__(self, functor, sigmaMin, sigmaMax, lmin, lmax, tmin, tmax, integration=IntegrationType.MEAN, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._functor = functor
     self._sigmaMin = float(sigmaMin)
     self._sigmaMax = float(sigmaMax)
     self._lmin = float(lmin)
     self._lmax = float(lmax)
     self._tmin = tmin
     self._tmax = tmax
     self._integration = integration
     self._sampling = sampling
Exemplo n.º 15
0
 def __init__(self, functor, sigmaMin, sigmaMax, lmin, lmax, tmin, tmax, integration=IntegrationType.MEAN, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._functor = functor
     self._sigmaMin = float(sigmaMin)
     self._sigmaMax = float(sigmaMax)
     self._lmin = float(lmin)
     self._lmax = float(lmax)
     self._tmin = tmin
     self._tmax = tmax
     self._integration = integration
     self._sampling = sampling
Exemplo n.º 16
0
 def __init__(self):
     UnaryPredicate1D.__init__(self)
     self.__func1 = GetOccludersF1D()
     self.__func2 = GetShapeF1D()
Exemplo n.º 17
0
 def __init__(self, pred1, pred2):
     UnaryPredicate1D.__init__(self)
     self.__pred1 = pred1
     self.__pred2 = pred2
Exemplo n.º 18
0
 def __init__(self, *predicates):
     UnaryPredicate1D.__init__(self)
     self.predicates = predicates
     # there are cases in which only one predicate is supplied (in the parameter editor)
     if len(self.predicates) < 1:
         raise ValueError("Expected two or more UnaryPredicate1D, got ", len(predicates))
Exemplo n.º 19
0
 def __init__(self, n, a):
     UnaryPredicate1D.__init__(self)
     self._n = n
     self._a = a
Exemplo n.º 20
0
 def __init__(self, threshold, level, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._level = level
     self._integration = integration
Exemplo n.º 21
0
 def __init__(self, wsize, threshold, integration=IntegrationType.MEAN, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._wsize = wsize
     self._threshold = threshold
     self._integration = integration
     self._func = DensityF1D(self._wsize, self._integration, sampling)
Exemplo n.º 22
0
 def __init__(self, n, a):
     UnaryPredicate1D.__init__(self)
     self._n = n
     self._a = a
     self.func = Curvature2DAngleF0D()
Exemplo n.º 23
0
 def __init__(self, nature):
     UnaryPredicate1D.__init__(self)
     self._nature = nature
     self._getNature = CurveNatureF1D()
Exemplo n.º 24
0
 def __init__(self, l):
     UnaryPredicate1D.__init__(self)
     self._l = l
Exemplo n.º 25
0
 def __init__(self, n):
     UnaryPredicate1D.__init__(self)
     self.__n = n
     self.__count = 0
Exemplo n.º 26
0
 def __init__(self, pred):
     UnaryPredicate1D.__init__(self)
     self.__pred = pred
Exemplo n.º 27
0
 def __init__(self, idlist):
     UnaryPredicate1D.__init__(self)
     self._funcs = tuple(ShapeUP1D(_id, 0) for _id in idlist)
Exemplo n.º 28
0
 def __init__(self, threshold, level, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._l = threshold
     self.func = pyDensityAnisotropyF1D(level, IntegrationType.MEAN, sampling)
Exemplo n.º 29
0
 def __init__(self, z, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._z = z
     self._integration = integration
Exemplo n.º 30
0
 def __init__(self, threshold, l, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._GetGradient = pyViewMapGradientNormF1D(l, IntegrationType.MEAN)
Exemplo n.º 31
0
 def __init__(self, length_min=None, length_max=None):
     UnaryPredicate1D.__init__(self)
     self.length_min = length_min
     self.length_max = length_max
Exemplo n.º 32
0
 def __init__(self, pred1, pred2):
     UnaryPredicate1D.__init__(self)
     self.__pred1 = pred1
     self.__pred2 = pred2
Exemplo n.º 33
0
 def __init__(self, names, negative):
     UnaryPredicate1D.__init__(self)
     self.names = names
     self.negative = negative
Exemplo n.º 34
0
 def __init__(self,z, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._z = z
     self._integration = integration
Exemplo n.º 35
0
 def __init__(self,n,a):
     UnaryPredicate1D.__init__(self)
     self._n = n
     self._a = a
Exemplo n.º 36
0
 def __init__(self, threshold, level, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._func = GetSteerableViewMapDensityF1D(level, integration)
Exemplo n.º 37
0
 def __init__(self,idlist):
     UnaryPredicate1D.__init__(self)
     self._idlist = idlist
     self._funcs = []
     for _id in idlist:
         self._funcs.append(ShapeUP1D(_id.first, _id.second))
Exemplo n.º 38
0
 def __init__(self, idlist):
     UnaryPredicate1D.__init__(self)
     self._idlist = idlist
     self._funcs = []
     for _id in idlist:
         self._funcs.append(ShapeUP1D(_id.first, _id.second))
Exemplo n.º 39
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)
Exemplo n.º 40
0
 def __init__(self, qi_start, qi_end):
     UnaryPredicate1D.__init__(self)
     self.getQI = QuantitativeInvisibilityF1D()
     self.qi_start = qi_start
     self.qi_end = qi_end
Exemplo n.º 41
0
 def __init__(self, names, negative=False):
     UnaryPredicate1D.__init__(self)
     self._names = names
     self._negative = negative
Exemplo n.º 42
0
 def __init__(self, length_min=None, length_max=None):
     UnaryPredicate1D.__init__(self)
     self.length_min = length_min
     self.length_max = length_max
Exemplo n.º 43
0
 def __init__(self, n):
     UnaryPredicate1D.__init__(self)
     self.__n = n
     self.__count = 0
Exemplo n.º 44
0
 def __init__(self, pred):
     UnaryPredicate1D.__init__(self)
     self.predicate = pred
Exemplo n.º 45
0
 def __init__(self, nature):
     UnaryPredicate1D.__init__(self)
     self._nature = nature
     self._getNature = CurveNatureF1D()
Exemplo n.º 46
0
 def __init__(self, qi_start, qi_end):
     UnaryPredicate1D.__init__(self)
     self.__getQI = QuantitativeInvisibilityF1D()
     self.__qi_start = qi_start
     self.__qi_end = qi_end
Exemplo n.º 47
0
 def __init__(self, z, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._z = z
     self.func = GetProjectedZF1D(integration)
Exemplo n.º 48
0
 def __init__(self, l):
     UnaryPredicate1D.__init__(self)
     self._l = l
Exemplo n.º 49
0
 def __init__(self, id):
     UnaryPredicate1D.__init__(self)
     if not isinstance(id, Id):
         raise TypeError("pyIsOccludedByUP1D expected freestyle.types.Id, not " + type(id).__name__)
     self._id = id
Exemplo n.º 50
0
 def __init__(self, n, a):
     UnaryPredicate1D.__init__(self)
     self._n = n
     self._a = a
     self.func = Curvature2DAngleF0D()
Exemplo n.º 51
0
 def __init__(self):
     UnaryPredicate1D.__init__(self)
     self.__func1 = GetOccludersF1D()
     self.__func2 = GetShapeF1D()
Exemplo n.º 52
0
 def __init__(self, z, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._z = z
     self.func = GetProjectedZF1D(integration)
Exemplo n.º 53
0
 def __init__(self, idlist):
     UnaryPredicate1D.__init__(self)
     self._idlist = idlist
     self.__func1 = GetOccludersF1D()
Exemplo n.º 54
0
 def __init__(self, idlist):
     UnaryPredicate1D.__init__(self)
     self._idlist = idlist
     self.__func1 = GetOccludersF1D()
Exemplo n.º 55
0
 def __init__(self, idlist):
     UnaryPredicate1D.__init__(self)
     self._funcs = tuple(ShapeUP1D(_id, 0) for _id in idlist)
Exemplo n.º 56
0
 def __init__(self, _id):
     UnaryPredicate1D.__init__(self)
     self._id = _id
Exemplo n.º 57
0
 def __init__(self, _id):
     UnaryPredicate1D.__init__(self)
     self._id = _id
Exemplo n.º 58
0
 def __init__(self, threshold, l, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._GetGradient = pyViewMapGradientNormF1D(l, IntegrationType.MEAN)
Exemplo n.º 59
0
 def __init__(self, threshold, level, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._l = threshold
     self.func = pyDensityAnisotropyF1D(level, IntegrationType.MEAN, sampling)