示例#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)
示例#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))
示例#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
示例#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
示例#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)
示例#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
示例#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))
示例#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)
示例#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)
示例#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)
示例#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)
示例#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
示例#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
示例#16
0
 def __init__(self):
     UnaryPredicate1D.__init__(self)
     self.__func1 = GetOccludersF1D()
     self.__func2 = GetShapeF1D()
示例#17
0
 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))
示例#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
示例#27
0
 def __init__(self, idlist):
     UnaryPredicate1D.__init__(self)
     self._funcs = tuple(ShapeUP1D(_id, 0) for _id in idlist)
示例#28
0
 def __init__(self, threshold, level, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._l = threshold
     self.func = pyDensityAnisotropyF1D(level, IntegrationType.MEAN, sampling)
示例#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)
示例#31
0
 def __init__(self, length_min=None, length_max=None):
     UnaryPredicate1D.__init__(self)
     self.length_min = length_min
     self.length_max = length_max
示例#32
0
 def __init__(self, pred1, pred2):
     UnaryPredicate1D.__init__(self)
     self.__pred1 = pred1
     self.__pred2 = pred2
示例#33
0
 def __init__(self, names, negative):
     UnaryPredicate1D.__init__(self)
     self.names = names
     self.negative = negative
示例#34
0
 def __init__(self,z, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._z = z
     self._integration = integration
示例#35
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._func = GetSteerableViewMapDensityF1D(level, integration)
示例#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))
示例#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)
示例#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
示例#41
0
 def __init__(self, names, negative=False):
     UnaryPredicate1D.__init__(self)
     self._names = names
     self._negative = negative
示例#42
0
 def __init__(self, length_min=None, length_max=None):
     UnaryPredicate1D.__init__(self)
     self.length_min = length_min
     self.length_max = length_max
示例#43
0
 def __init__(self, n):
     UnaryPredicate1D.__init__(self)
     self.__n = n
     self.__count = 0
示例#44
0
 def __init__(self, pred):
     UnaryPredicate1D.__init__(self)
     self.predicate = pred
示例#45
0
 def __init__(self, nature):
     UnaryPredicate1D.__init__(self)
     self._nature = nature
     self._getNature = CurveNatureF1D()
示例#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)
示例#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
示例#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()
示例#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()
示例#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)
示例#56
0
 def __init__(self, _id):
     UnaryPredicate1D.__init__(self)
     self._id = _id
 def __init__(self, _id):
     UnaryPredicate1D.__init__(self)
     self._id = _id
示例#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)