def addLabel(self, name,number, color): description = VolumeLabelDescription(name,number, color, None) for imageIndex, imageItem in enumerate(self.dataMgr): descr = description.clone() descr._prediction = numpy.zeros(imageItem._dataVol._data.shape[0:-1], 'uint8') imageItem.Interactive_Segmentation.seedLabelsVolume.descriptions.append(descr)
def addLabel(self, name, number, color): description = VolumeLabelDescription(name, number, color, None) for imageIndex, imageItem in enumerate(self.dataMgr): descr = description.clone() descr._prediction = numpy.zeros( imageItem._dataVol._data.shape[0:-1], 'uint8') imageItem.Interactive_Segmentation.seedLabelsVolume.descriptions.append( descr)
def addLabel(self, name, number, color): description = VolumeLabelDescription(name, number, color, None) self.dataMgr.module["Classification"]["labelDescriptions"].append( description)
def addLabel(self, name, number, color): description = VolumeLabelDescription(name,number, color, None) description._prediction = numpy.zeros(self.dataItemImage.shape[0:-1], 'uint8') self.background.descriptions.append(description)
def addLabel(self, name, number, color): description = VolumeLabelDescription(name, number, color, None) description._prediction = numpy.zeros(self.dataItemImage.shape[0:-1], 'uint8') self.objects.descriptions.append(description)