Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)    
Exemplo n.º 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)