b71894ecb9c6beb4c4b1b6c546bc4f9c79f35aaf,ilastik/applets/pixelClassification/pixelClassificationGui.py,PixelClassificationGui,getNextLabelColor,#PixelClassificationGui#,488
Before Change
self.topLevelOperatorView.LabelNames.setValue(result)
def getNextLabelColor(self):
numLabels = self.labelListData.rowCount()
labelColors = self.topLevelOperatorView.LabelColors.value
if numLabels < len(labelColors):
return QColor( *labelColors[numLabels] )
else:
return super( PixelClassificationGui, self ).getNextLabelColor()
def onLabelColorChanged(self):
super( PixelClassificationGui, self ).onLabelColorChanged()
f = lambda l: (l.brushColor().red(), l.brushColor().green(), l.brushColor().blue())
labelColors = map(f, self.labelListData)
After Change
return self._getNext(self.topLevelOperatorView.LabelNames,
super(PixelClassificationGui, self).getNextLabelName)
def getNextLabelColor(self):
return QColor(*(self._getNext(self.topLevelOperatorView.LabelColors,
super(PixelClassificationGui, self).getNextLabelColor)))
def getNextPmapColor(self):
return QColor(*(self._getNext(self.topLevelOperatorView.PmapColors,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 15
Instances
Project Name: ilastik/ilastik
Commit Name: b71894ecb9c6beb4c4b1b6c546bc4f9c79f35aaf
Time: 2013-02-06
Author: kemal.eren@iwr.uni-heidelberg.de
File Name: ilastik/applets/pixelClassification/pixelClassificationGui.py
Class Name: PixelClassificationGui
Method Name: getNextLabelColor
Project Name: ilastik/ilastik
Commit Name: b71894ecb9c6beb4c4b1b6c546bc4f9c79f35aaf
Time: 2013-02-06
Author: kemal.eren@iwr.uni-heidelberg.de
File Name: ilastik/applets/pixelClassification/pixelClassificationGui.py
Class Name: PixelClassificationGui
Method Name: getNextLabelName
Project Name: ilastik/ilastik
Commit Name: b71894ecb9c6beb4c4b1b6c546bc4f9c79f35aaf
Time: 2013-02-06
Author: kemal.eren@iwr.uni-heidelberg.de
File Name: ilastik/applets/pixelClassification/pixelClassificationGui.py
Class Name: PixelClassificationGui
Method Name: getNextPmapColor