4d24c893cd0de2cd790efd70ad1edd5c131a6e47,ilastik/applets/thresholdTwoLevels/_OpGraphCut.py,OpGraphCut,execute,#OpGraphCut#Any#Any#Any#Any#,98

Before Change


        self.opReorderOutput.AxisOrder.setValue(self.inputAxisOrder)

    def execute(self, slot, subindex, roi, result):
        assert False, "should not get here"

    def propagateDirty(self, slot, subindex, roi):
        pass

After Change


                "Invalid roi for graph-cut: {}".format(str(roi))

        // request the prediction image
        pred = self.Prediction.get(roi).wait()
        pred = vigra.taggedView(pred, axistags=self.Prediction.meta.axistags)
        pred = pred.withAxes(*"zyx")

        // prepare result
        resView = vigra.taggedView(result, axistags=self.Output.meta.axistags)
        resView = resView.withAxes(*"zyx")

        logger.info("Executing graph cut ... (this might take a while)")
        threshold_binary = segmentGC(pred, self.Beta.value)
        threshold_binary = vigra.taggedView(threshold_binary, "zyx")
        logger.info("Graph-cut done")

        // label the segmentation so that this operator is consistent with
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ilastik/ilastik
Commit Name: 4d24c893cd0de2cd790efd70ad1edd5c131a6e47
Time: 2018-04-24
Author: fynn.beuttenmueller@iwr.uni-heidelberg.de
File Name: ilastik/applets/thresholdTwoLevels/_OpGraphCut.py
Class Name: OpGraphCut
Method Name: execute


Project Name: ilastik/ilastik
Commit Name: 2cea8498ae1bbd359f1bf5113d873ebcc9661506
Time: 2013-01-30
Author: bergs@janelia.hhmi.org
File Name: tests/test_applets/pixelClassification/testPixelClassificationSerializer.py
Class Name: TestPixelClassificationSerializer
Method Name: test


Project Name: ilastik/ilastik
Commit Name: 3a70a8a00e00441ec1edc615df474ad6f5b4b4cb
Time: 2013-04-23
Author: webmaster@burgerdev.de
File Name: tests/test_applets/objectClassification/testOperators.py
Class Name: TestOpObjectTrain
Method Name: test_train