fd2768683d72cd910db485c549c4aa8372dff2b5,ilastik/applets/splitBodyCarving/opSplitBodyCarving.py,OpSplitBodyCarving,execute,#OpSplitBodyCarving#Any#Any#Any#Any#,83

Before Change


    def execute(self, slot, subindex, roi, result):
        if slot == self.MaskedSegmentation:
            ravelerLabels = self.RavelerLabels(roi.start, roi.stop).wait()
            result = self.Segmentation(roi.start, roi.stop).writeInto(result).wait()
            result[:] = numpy.where(ravelerLabels == self.CurrentRavelerLabel.value, result, 0)
            return result
        else:
            return super( OpSplitBodyCarving, self ).execute( slot, subindex, roi, result )

After Change


        self.CurrentRavelerObjectRemainder.meta.assignFrom( self.RavelerLabels.meta )
            
    def execute(self, slot, subindex, roi, result):
        if slot == self.MaskedSegmentation:
            return self._executeMaskedSegmentation(roi, result)
        elif slot == self.CurrentRavelerObjectRemainder:
            return self._executeCurrentRavelerObjectRemainder(roi, result)
        else:
            return super( OpSplitBodyCarving, self ).execute( slot, subindex, roi, result )
    
    def _executeMaskedSegmentation(self, roi, result):
        result = self.Segmentation(roi.start, roi.stop).writeInto(result).wait()
        currentRemainder = self.CurrentRavelerObjectRemainder(roi.start, roi.stop).wait()
        numpy.logical_and( result, currentRemainder, out=result )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ilastik/ilastik
Commit Name: fd2768683d72cd910db485c549c4aa8372dff2b5
Time: 2013-06-05
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/splitBodyCarving/opSplitBodyCarving.py
Class Name: OpSplitBodyCarving
Method Name: execute


Project Name: ilastik/ilastik
Commit Name: 4dddf6c043f45da0318e975593d86ccd920dcb2a
Time: 2013-02-15
Author: kemal.eren@iwr.uni-heidelberg.de
File Name: ilastik/applets/base/appletSerializer.py
Class Name: SerialClassifierSlot
Method Name: _serialize


Project Name: ilastik/ilastik
Commit Name: c7f83e01b01f0c23050b63859dc9c1bf74acbc53
Time: 2013-07-31
Author: webmaster@burgerdev.de
File Name: tests/testOpInterpMissingData.py
Class Name: TestInterpMissingData
Method Name: testDetectorPropagation