Exemplo n.º 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()
Exemplo n.º 2
0
 def __init__(self, collection):
     super(SegmentationController, self).__init__(collection)
     self.segmenter = Segmentation()