示例#1
0
文件: grid.py 项目: fpeder/mscr
 def finalize(self):
     if len(self._pred) > 0:
         pred = MyMorph((self._grd.w, self._grd.h), 2).run(self._pred)
         cc = MyCC(self._cls.labels)
         cc.run(pred)
         self._bb = cc.get_bounding_box()
示例#2
0
 def finalize(self):
     if len(self._pred) > 0:
         pred = MyMorph((self._grd.w, self._grd.h), 2).run(self._pred)
         cc = MyCC(self._cls.labels)
         cc.run(pred)
         self._bb = cc.get_bounding_box()
示例#3
0
 def get_bounding_box(self):
     cc = MyCC([0, 1])
     cc.run(self._coarse)
     bb = cc.get_bounding_box()
     self._bb = bb
     return bb
示例#4
0
文件: blockVote.py 项目: fpeder/mscr
 def get_bounding_box(self):
     cc = MyCC([0, 1])
     cc.run(self._coarse)
     bb = cc.get_bounding_box()
     self._bb = bb
     return bb