def combine(self, existing, points, shapecode, val):
   entry = np.zeros(self.cats.shape[0])
   idx = np.nonzero(self.cats==val)[0][0]
   entry[idx] = 1
   update = ar.glyphAggregates(points, shapecode, entry, self.identity)  
   existing[points[0]:points[2],points[1]:points[3]] += update
示例#2
0
 def combine(self, existing, points, shapecode, val):
   update = ar.glyphAggregates(points, shapecode, val, self.identity)  
   existing[points[0]:points[2],points[1]:points[3]] += update