Exemple #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))
 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)
Exemple #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))
 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
 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
Exemple #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)
Exemple #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
Exemple #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))
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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
 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
Exemple #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
Exemple #16
0
 def __init__(self):
     UnaryPredicate1D.__init__(self)
     self.__func1 = GetOccludersF1D()
     self.__func2 = GetShapeF1D()
 def __init__(self, pred1, pred2):
     UnaryPredicate1D.__init__(self)
     self.__pred1 = pred1
     self.__pred2 = pred2
 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))
Exemple #19
0
 def __init__(self, n, a):
     UnaryPredicate1D.__init__(self)
     self._n = n
     self._a = a
 def __init__(self, threshold, level, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._level = level
     self._integration = integration
 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)
 def __init__(self, n, a):
     UnaryPredicate1D.__init__(self)
     self._n = n
     self._a = a
     self.func = Curvature2DAngleF0D()
 def __init__(self, nature):
     UnaryPredicate1D.__init__(self)
     self._nature = nature
     self._getNature = CurveNatureF1D()
 def __init__(self, l):
     UnaryPredicate1D.__init__(self)
     self._l = l
 def __init__(self, n):
     UnaryPredicate1D.__init__(self)
     self.__n = n
     self.__count = 0
 def __init__(self, pred):
     UnaryPredicate1D.__init__(self)
     self.__pred = pred
Exemple #27
0
 def __init__(self, idlist):
     UnaryPredicate1D.__init__(self)
     self._funcs = tuple(ShapeUP1D(_id, 0) for _id in idlist)
Exemple #28
0
 def __init__(self, threshold, level, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._l = threshold
     self.func = pyDensityAnisotropyF1D(level, IntegrationType.MEAN, sampling)
Exemple #29
0
 def __init__(self, z, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._z = z
     self._integration = integration
 def __init__(self, threshold, l, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._GetGradient = pyViewMapGradientNormF1D(l, IntegrationType.MEAN)
Exemple #31
0
 def __init__(self, length_min=None, length_max=None):
     UnaryPredicate1D.__init__(self)
     self.length_min = length_min
     self.length_max = length_max
Exemple #32
0
 def __init__(self, pred1, pred2):
     UnaryPredicate1D.__init__(self)
     self.__pred1 = pred1
     self.__pred2 = pred2
Exemple #33
0
 def __init__(self, names, negative):
     UnaryPredicate1D.__init__(self)
     self.names = names
     self.negative = negative
 def __init__(self,z, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._z = z
     self._integration = integration
 def __init__(self,n,a):
     UnaryPredicate1D.__init__(self)
     self._n = n
     self._a = a
 def __init__(self, threshold, level, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._func = GetSteerableViewMapDensityF1D(level, integration)
 def __init__(self,idlist):
     UnaryPredicate1D.__init__(self)
     self._idlist = idlist
     self._funcs = []
     for _id in idlist:
         self._funcs.append(ShapeUP1D(_id.first, _id.second))
Exemple #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))
 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 #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
Exemple #41
0
 def __init__(self, names, negative=False):
     UnaryPredicate1D.__init__(self)
     self._names = names
     self._negative = negative
Exemple #42
0
 def __init__(self, length_min=None, length_max=None):
     UnaryPredicate1D.__init__(self)
     self.length_min = length_min
     self.length_max = length_max
Exemple #43
0
 def __init__(self, n):
     UnaryPredicate1D.__init__(self)
     self.__n = n
     self.__count = 0
Exemple #44
0
 def __init__(self, pred):
     UnaryPredicate1D.__init__(self)
     self.predicate = pred
Exemple #45
0
 def __init__(self, nature):
     UnaryPredicate1D.__init__(self)
     self._nature = nature
     self._getNature = CurveNatureF1D()
Exemple #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
 def __init__(self, z, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._z = z
     self.func = GetProjectedZF1D(integration)
Exemple #48
0
 def __init__(self, l):
     UnaryPredicate1D.__init__(self)
     self._l = l
 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
Exemple #50
0
 def __init__(self, n, a):
     UnaryPredicate1D.__init__(self)
     self._n = n
     self._a = a
     self.func = Curvature2DAngleF0D()
 def __init__(self):
     UnaryPredicate1D.__init__(self)
     self.__func1 = GetOccludersF1D()
     self.__func2 = GetShapeF1D()
Exemple #52
0
 def __init__(self, z, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._z = z
     self.func = GetProjectedZF1D(integration)
 def __init__(self, idlist):
     UnaryPredicate1D.__init__(self)
     self._idlist = idlist
     self.__func1 = GetOccludersF1D()
Exemple #54
0
 def __init__(self, idlist):
     UnaryPredicate1D.__init__(self)
     self._idlist = idlist
     self.__func1 = GetOccludersF1D()
 def __init__(self, idlist):
     UnaryPredicate1D.__init__(self)
     self._funcs = tuple(ShapeUP1D(_id, 0) for _id in idlist)
Exemple #56
0
 def __init__(self, _id):
     UnaryPredicate1D.__init__(self)
     self._id = _id
 def __init__(self, _id):
     UnaryPredicate1D.__init__(self)
     self._id = _id
Exemple #58
0
 def __init__(self, threshold, l, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._GetGradient = pyViewMapGradientNormF1D(l, IntegrationType.MEAN)
 def __init__(self, threshold, level, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._l = threshold
     self.func = pyDensityAnisotropyF1D(level, IntegrationType.MEAN, sampling)