d6abe1fb708b65cc230a2d4c40dc98e3f7c845c5,ilastik/applets/thresholdTwoLevels/_OpGraphCut.py,OpGraphCut,execute,#OpGraphCut#Any#Any#Any#Any#,109

Before 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
        // the other thresholding operators

After 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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ilastik/ilastik
Commit Name: d6abe1fb708b65cc230a2d4c40dc98e3f7c845c5
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: 4d11c9f68a38dfb94f2a353bf41c06133a8023ad
Time: 2012-08-07
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/dataSelection/dataSelectionSerializer.py
Class Name: DataSelectionSerializer
Method Name: _serializeToHdf5


Project Name: ilastik/ilastik
Commit Name: 4f678e605583b8770d5fbd1ee194f2c74fbd3a24
Time: 2014-03-19
Author: bergs@janelia.hhmi.org
File Name: lazyflow/operators/opCompressedUserLabelArray.py
Class Name: OpCompressedUserLabelArray
Method Name: setInSlot