05fefb031b5668b8e823298257d907b67d8a2ca0,ilastik/applets/vigraWatershedViewer/opVigraWatershedViewer.py,OpVigraWatershedViewer,setupOutputs,#OpVigraWatershedViewer#,47

Before Change


        // Can"t make this last connection in __init__ because 
        //  opChannelSelector.Slices won"t have any data until its input is ready 
        if len(self.opChannelSelector.Slices) > 0:
            self.opWatershed.InputImage.connect(self.opChannelSelector.Slices[0])

        //// Cache blocks
        // Inner and outer block shapes are the same.

After Change


        if len(self.opWatershedCache.InnerOutputs) > 0:
            self.WatershedLabels.connect( self.opWatershedCache.InnerOutputs[2] )
        
        if self.SeedThresholdValue.ready():
            seedThreshold = self.SeedThresholdValue.value
            if not self.opWatershed.SeedImage.connected() or seedThreshold != self._seedThreshold:
                self._seedThreshold = seedThreshold
                
                self.opThreshold.Function.setValue( lambda a: (a <= seedThreshold).astype(numpy.uint8) )                
                self.opWatershed.SeedImage.connect( self.opSeedLabeler.Output )
        else:
            self.opWatershed.SeedImage.disconnect()

    def propagateDirty(self, inputSlot, roi):
        pass // Output is connected directly to an internal operator

if __name__ == "__main__":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ilastik/ilastik
Commit Name: 05fefb031b5668b8e823298257d907b67d8a2ca0
Time: 2012-09-05
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/vigraWatershedViewer/opVigraWatershedViewer.py
Class Name: OpVigraWatershedViewer
Method Name: setupOutputs


Project Name: ilastik/ilastik
Commit Name: ed6a9bd7af2c1ff5ec0f80abf5e9067d7834a3db
Time: 2014-05-09
Author: bergs@janelia.hhmi.org
File Name: lazyflow/operators/classifierOperators.py
Class Name: OpClassifierPredict
Method Name: execute


Project Name: ilastik/ilastik
Commit Name: 7c408ad993e215227823fc1f7fc64b8737782b5d
Time: 2017-03-07
Author: dominik.kutra@gmail.com
File Name: lazyflow/operators/ioOperators/opNpyFileReader.py
Class Name: OpNpyFileReader
Method Name: setupOutputs