b18f11390a9b1353eaa124582bfae53356adb917,ilastik/workflows/carving/carvingGui.py,CarvingGui,_update_colors,#CarvingGui#,596

Before Change


            self._renderMgr.setColor(label, color)

        if self._showSegmentationIn3D and self._segmentation_3d_label is not None:
            self._renderMgr.setColor(self._segmentation_3d_label, (0.0, 1.0, 0.0)) // Green

    def _getNext(self, slot, parentFun, transform=None):
        numLabels = self.labelListData.rowCount()

After Change


            // color of the foreground label from label list data
            labels = self.labelListData
            assert len(labels) == 2
            fg_label = labels[1]
            color = fg_label.pmapColor()  // 2 is the foreground index
            self._renderMgr.setColor(
                self._segmentation_3d_label,
                (color.red() / 255.0, color.green() / 255.0, color.blue() / 255.0)
            )

    def _getNext(self, slot, parentFun, transform=None):
        numLabels = self.labelListData.rowCount()
        value = slot.value
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ilastik/ilastik
Commit Name: b18f11390a9b1353eaa124582bfae53356adb917
Time: 2018-08-30
Author: k-dominik@users.noreply.github.com
File Name: ilastik/workflows/carving/carvingGui.py
Class Name: CarvingGui
Method Name: _update_colors


Project Name: flow-project/flow
Commit Name: c44f594fcffe135b26327f37ad87accad52d1422
Time: 2017-05-31
Author: eugenevinitsky@Eugenes-MacBook-Pro.local
File Name: cistar-dev/cistar/core/base_env.py
Class Name: SumoEnvironment
Method Name: reset


Project Name: flow-project/flow
Commit Name: 3b1957f4c655f881b54067cc1da6dc377f1b38b4
Time: 2017-05-15
Author: eugenevinitsky@calvisitor-10-105-137-21.calvisitor.1918.berkeley.edu
File Name: cistar-dev/cistar/core/base_env.py
Class Name: SumoEnvironment
Method Name: reset