コード例 #1
0
	def onReject(self):

		keeplist = []
		imgdata = self.images[self.currentindex]
		apMask.saveAssessmentFromTargets(self.maskrundata,self.assessrundata,imgdata,keeplist)
		
		self.continueOn()
コード例 #2
0
	def onReject(self):

		keeplist = []
		imgdata = self.images[self.currentindex]
		apMask.saveAssessmentFromTargets(self.maskrundata,self.assessrundata,imgdata,keeplist)
		
		self.continueOn()
コード例 #3
0
	def onKeep(self):
		keeplist = []
		keeptargets = self.panel.getTargets('Regions')
		imgdata = self.images[self.currentindex]
		for target in keeptargets:
			keeplist.append(target.stats['Label'])
		apMask.saveAssessmentFromTargets(self.maskrundata,self.assessrundata,imgdata,keeplist)

		self.continueOn()
コード例 #4
0
	def onKeep(self):
		keeplist = []
		keeptargets = self.panel.getTargets('Regions')
		imgdata = self.images[self.currentindex]
		for target in keeptargets:
			keeplist.append(target.stats['Label'])
		apMask.saveAssessmentFromTargets(self.maskrundata,self.assessrundata,imgdata,keeplist)

		self.continueOn()
コード例 #5
0
	def onKeepAll(self):
		self.getImageList()
		
		# get maskshape from first mask
		currentname = self.files[0]
		dir = self.maskdir
		fullname = os.path.join(dir, currentname)
		imarray = self.readPNG(fullname)
		maskshape = imarray.shape
		if self.images:
			for i,imgdata in enumerate(self.images):
				targets = apMask.getRegionsAsTargets(self.maskrundata,maskshape,imgdata)
			
				keeplist = []
				keeptargets = targets
				for target in keeptargets:
					keeplist.append(target['stats']['Label'])
				apMask.saveAssessmentFromTargets(self.maskrundata,self.assessrundata,imgdata,keeplist)
			self.logger.info('Keep All Regions of mask run: %s' % (self.maskrundata['name'],))
コード例 #6
0
	def onKeepAll(self):
		self.getImageList()
		
		# get maskshape from first mask
		currentname = self.files[0]
		dir = self.maskdir
		fullname = os.path.join(dir, currentname)
		imarray = self.readPNG(fullname)
		maskshape = imarray.shape
		if self.images:
			for i,imgdata in enumerate(self.images):
				targets = apMask.getRegionsAsTargets(self.maskrundata,maskshape,imgdata)
			
				keeplist = []
				keeptargets = targets
				for target in keeptargets:
					keeplist.append(target['stats']['Label'])
				apMask.saveAssessmentFromTargets(self.maskrundata,self.assessrundata,imgdata,keeplist)
			self.logger.info('Keep All Regions of mask run: %s' % (self.maskrundata['name'],))