Beispiel #1
0
	def modifyThumb(self, thumb="dark", value=-1, value2=-1):
		if (thumb=="DARK"):
			temp = self.imageCVOriginal.copy()
			temp = cv2.resize(temp, (100,100))
			temp = cvSpace.binarice(temp, value)
			temp = Image.fromarray(cv2.resize(temp, (100, 100)))
		elif (thumb=="DIFUSSE"):
			print "Difusse"
			temp = self.imageCVOriginal.copy()
			temp = cv2.resize(temp, (100,100))
			temp = cvSpace.segment(temp, value, value2)
			temp = Image.fromarray(cv2.resize(temp, (100, 100)))
		elif (thumb=="PEAK"):
			print "Peak"
			temp = self.imageCVOriginal.copy()
			temp = cv2.resize(temp, (100,100))
			temp = cv2.bitwise_not(temp)
			temp = cvSpace.binarice(temp, 255-value)
			temp = cv2.bitwise_not(temp)
			temp = Image.fromarray(cv2.resize(temp, (100, 100)))
		return ImageTk.PhotoImage(temp)
Beispiel #2
0
	def generateDiffuseImage(self, vMin, vMax):
		print "Binarizando"
		temp = self.imageCVOriginal.copy()
		temp = cvSpace.segment(temp, vMin, vMax)
		return temp