Beispiel #1
0
 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)
Beispiel #2
0
    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)
Beispiel #3
0
 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)    
Beispiel #5
0
 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)