示例#1
0
class SegmentationController(GraphicController):
    finished = QtCore.pyqtSignal()
    def __init__(self, collection):
        super(SegmentationController, self).__init__(collection)
        self.segmenter = Segmentation()

    def run(self):
        reduced = self.segmenter.reduction(self.data)
        self.data = self.segmenter.segment_all_samples(reduced)

#        self.emit(QtCore.SIGNAL("finished()"))
        self.finished.emit()
示例#2
0
 def __init__(self, collection):
     super(SegmentationController, self).__init__(collection)
     self.segmenter = Segmentation()