5a7374af491c3291609b9e1201240e4d11d96459,ilastik/applets/splitBodyCarving/opSplitBodyCarving.py,OpSplitBodyCarving,_executeCurrentRavelerObjectRemainder,#OpSplitBodyCarving#Any#Any#,103

Before Change


        return result

    def _executeCurrentRavelerObjectRemainder(self, roi, result):
        ravelerLabel = self.CurrentRavelerLabel.value
        if ravelerLabel == 0:
            result[:] = 0
            return result
        
        // Start with the original raveler object
        self.CurrentRavelerObject(roi.start, roi.stop).writeInto(result).wait()

        names = self.getSavedObjectNamesForRavelerLabel(ravelerLabel)
        
        // Accumulate the objects objects from this raveler object that we"ve already split off
        lut = numpy.zeros(len(self._mst.objects.lut), dtype=numpy.int32)
        for name in names:
            objectSupervoxels = self._mst.object_lut[name]
            lut[objectSupervoxels] = 1

        // Save memory: Implement (A - B) == (A & ~B) == ~(~A | B), and do it with three in-place operations
        slicing = roiToSlice( roi.start[1:4], roi.stop[1:4] )
        a = result[0,...,0]

After Change


        // Start with the original raveler object
        self.CurrentRavelerObject(roi.start, roi.stop).writeInto(result).wait()

        lut = self._opFragmentSetLut.Lut[:].wait()

        // Save memory: Implement (A - B) == (A & ~B), and do it with in-place operations
        slicing = roiToSlice( roi.start[1:4], roi.stop[1:4] )
        a = result[0,...,0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: ilastik/ilastik
Commit Name: 5a7374af491c3291609b9e1201240e4d11d96459
Time: 2013-06-10
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/splitBodyCarving/opSplitBodyCarving.py
Class Name: OpSplitBodyCarving
Method Name: _executeCurrentRavelerObjectRemainder


Project Name: googledatalab/pydatalab
Commit Name: 5615fee985fde2cef0b5a194fb6d2debd9486d5a
Time: 2017-03-06
Author: qimingj@users.noreply.github.com
File Name: solutionbox/image_classification/mltoolbox/image/classification/_api.py
Class Name:
Method Name: preprocess


Project Name: googledatalab/pydatalab
Commit Name: 5615fee985fde2cef0b5a194fb6d2debd9486d5a
Time: 2017-03-06
Author: qimingj@users.noreply.github.com
File Name: solutionbox/image_classification/mltoolbox/image/classification/_api.py
Class Name:
Method Name: batch_predict