예제 #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))
예제 #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)
예제 #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
예제 #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
예제 #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
예제 #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))
예제 #19
0
 def __init__(self, n, a):
     UnaryPredicate1D.__init__(self)
     self._n = n
     self._a = a
예제 #20
0
 def __init__(self, threshold, level, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._level = level
     self._integration = integration
예제 #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)
예제 #22
0
 def __init__(self, n, a):
     UnaryPredicate1D.__init__(self)
     self._n = n
     self._a = a
     self.func = Curvature2DAngleF0D()
예제 #23
0
 def __init__(self, nature):
     UnaryPredicate1D.__init__(self)
     self._nature = nature
     self._getNature = CurveNatureF1D()
예제 #24
0
 def __init__(self, l):
     UnaryPredicate1D.__init__(self)
     self._l = l
예제 #25
0
 def __init__(self, n):
     UnaryPredicate1D.__init__(self)
     self.__n = n
     self.__count = 0
예제 #26
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
예제 #30
0
 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
예제 #36
0
 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))
예제 #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)
예제 #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
예제 #47
0
 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
예제 #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
예제 #50
0
 def __init__(self, n, a):
     UnaryPredicate1D.__init__(self)
     self._n = n
     self._a = a
     self.func = Curvature2DAngleF0D()
예제 #51
0
 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)
예제 #53
0
 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()
예제 #55
0
 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
예제 #57
0
 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)
예제 #59
0
 def __init__(self, threshold, level, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._l = threshold
     self.func = pyDensityAnisotropyF1D(level, IntegrationType.MEAN, sampling)