b1cd9acb4416a81408e4c01f2859fe2c587b36d2,ilastik/applets/labeling/opLabeling.py,OpLabelingSingleLane,__init__,#OpLabelingSingleLane#Any#,130
Before Change
self._blockDims = blockDims
// Create internal operators
self.opInputShapeReader = OpShapeReader( parent=self )
self.opLabelArray = OpBlockedSparseLabelArray( parent=self )
// Set up label cache shape input
self.opInputShapeReader.Input.connect( self.InputImage )
// Note: "shape" is a (poorly named) INPUT SLOT here
self.opLabelArray.shape.connect( self.opInputShapeReader.OutputShape )
// Set up other label cache inputs
self.opLabelArray.Input.connect( self.LabelInput )
self.opLabelArray.eraser.connect(self.LabelEraserValue)
self.opLabelArray.deleteLabel.connect(self.LabelDelete)
// Connect our internal outputs to our external outputs
self.LabelImage.connect( self.opLabelArray.Output )
self.NonzeroLabelBlocks.connect( self.opLabelArray.nonzeroBlocks )
self.MaxLabelValue.connect( self.opLabelArray.maxLabel )
def setupOutputs(self):
self.setupInputMeta()
After Change
LabelNames = OutputSlot()
LabelColors = OutputSlot()
def __init__(self, blockDims = None, *args, **kwargs):
Instantiate all internal operators and connect them together.
super(OpLabelingSingleLane, self).__init__( *args, **kwargs )
// Configuration options
if blockDims is None:
blockDims = { "t" : 1, "x" : 32, "y" : 32, "z" : 32, "c" : 1 }
assert isinstance(blockDims, dict)
self._blockDims = blockDims
// Create internal operator
self.opLabelArray = OpCompressedUserLabelArray( parent=self )
self.opLabelArray.Input.connect( self.LabelInput )
self.opLabelArray.eraser.connect(self.LabelEraserValue)
self.opLabelArray.deleteLabel.connect(self.LabelDelete)
// Connect our internal outputs to our external outputs
self.LabelImage.connect( self.opLabelArray.Output )
self.NonzeroLabelBlocks.connect( self.opLabelArray.nonzeroBlocks )
self.LabelNames.setValue([])
self.LabelColors.setValue([])
def setupOutputs(self):
self.LabelNames.meta.dtype = object
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 19
Instances
Project Name: ilastik/ilastik
Commit Name: b1cd9acb4416a81408e4c01f2859fe2c587b36d2
Time: 2014-03-15
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/labeling/opLabeling.py
Class Name: OpLabelingSingleLane
Method Name: __init__
Project Name: ilastik/ilastik
Commit Name: 6ddb9db8b3331aee2abf1ea2913555d410bfc4a7
Time: 2018-04-25
Author: jonas.massa@iwr.uni-heidelberg.de
File Name: ilastik/applets/networkClassification/opNNclass.py
Class Name: OpNNClassification
Method Name: __init__
Project Name: ilastik/ilastik
Commit Name: 5992fe3cf6dfdabd4d4a1894148028a2ed13160f
Time: 2015-03-31
Author: kirkhamj@janelia.hhmi.org
File Name: ilastik/applets/nanshe/opNanshePreprocessing.py
Class Name: OpNanshePreprocessing
Method Name: __init__
Project Name: ilastik/ilastik
Commit Name: b1cd9acb4416a81408e4c01f2859fe2c587b36d2
Time: 2014-03-15
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/labeling/opLabeling.py
Class Name: OpLabelingSingleLane
Method Name: __init__