db00d263dd7b3079d9fe42af721828cce7fc0f24,ilastik/applets/pixelClassification/pixelClassificationGui.py,PixelClassificationGui,setupLayers,#PixelClassificationGui#,577

Before Change


        // Add the raw data last (on the bottom)
        inputDataSlot = self.topLevelOperatorView.InputImages        
        if inputDataSlot.ready():                        
            inputLayer = self.createStandardLayerFromSlot( inputDataSlot )
            inputLayer.name = "Input Data"
            inputLayer.visible = True
            inputLayer.opacity = 1.0
            // the flag window_leveling is used to determine if the contrast 
            // of the layer is adjustable
            if isinstance( inputLayer, GrayscaleLayer ):
                inputLayer.window_leveling = True
            else:
                inputLayer.window_leveling = False

            def toggleTopToBottom():
                index = self.layerstack.layerIndex( inputLayer )
                self.layerstack.selectRow( index )
                if index == 0:
                    self.layerstack.moveSelectedToBottom()
                else:
                    self.layerstack.moveSelectedToTop()

            inputLayer.shortcutRegistration = ( "i", ActionInfo( "Prediction Layers",
                                                                 "Bring Input To Top/Bottom",
                                                                 "Bring Input To Top/Bottom",
                                                                 toggleTopToBottom,
                                                                 self.viewerControlWidget(),
                                                                 inputLayer ) )
            layers.append(inputLayer)
            
            // The thresholding button can only be used if the data is displayed as grayscale.
            if inputLayer.window_leveling:
                self.labelingDrawerUi.thresToolButton.show()

After Change


        inputDataSlot = self.topLevelOperatorView.InputImages        
        if inputDataSlot.ready():
            inputLayer = None
            for layer in layers:
                if layer.name == "Raw Input":
                    inputLayer = layer
                    break

            def toggleTopToBottom():
                index = self.layerstack.layerIndex( inputLayer )
                self.layerstack.selectRow( index )
                if index == 0:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: ilastik/ilastik
Commit Name: db00d263dd7b3079d9fe42af721828cce7fc0f24
Time: 2018-12-20
Author: hiltpa@gmail.com
File Name: ilastik/applets/pixelClassification/pixelClassificationGui.py
Class Name: PixelClassificationGui
Method Name: setupLayers


Project Name: ilastik/ilastik
Commit Name: 167418e33dce7110afa3d9c7245265ec79f7acb3
Time: 2013-01-29
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/pixelClassification/pixelClassificationBatchResultsGui.py
Class Name: PixelClassificationResultsViewer
Method Name: setupLayers


Project Name: ilastik/ilastik
Commit Name: db00d263dd7b3079d9fe42af721828cce7fc0f24
Time: 2018-12-20
Author: hiltpa@gmail.com
File Name: ilastik/applets/objectClassification/objectClassificationGui.py
Class Name: ObjectClassificationGui
Method Name: setupLayers


Project Name: ilastik/ilastik
Commit Name: db00d263dd7b3079d9fe42af721828cce7fc0f24
Time: 2018-12-20
Author: hiltpa@gmail.com
File Name: ilastik/applets/pixelClassification/pixelClassificationGui.py
Class Name: PixelClassificationGui
Method Name: setupLayers