comparison transformations/BruitGauss.py @ 99:939915371a6d

deleted useless print in BruitGauss.py
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Thu, 11 Feb 2010 17:26:44 -0500
parents 17fabd74dd2b
children 313c249d638e
comparison
equal deleted inserted replaced
98:f3f4fee77a25 99:939915371a6d
94 offsetxmax = numpy.ceil(self.grandeur / 2.0) - (32-x_bruit) 94 offsetxmax = numpy.ceil(self.grandeur / 2.0) - (32-x_bruit)
95 if y_bruit < self.grandeur / 2: 95 if y_bruit < self.grandeur / 2:
96 offsetymin = self.grandeur / 2 - y_bruit 96 offsetymin = self.grandeur / 2 - y_bruit
97 if 32-y_bruit < numpy.ceil(self.grandeur / 2.0): 97 if 32-y_bruit < numpy.ceil(self.grandeur / 2.0):
98 offsetymax = numpy.ceil(self.grandeur / 2.0) - (32-y_bruit) 98 offsetymax = numpy.ceil(self.grandeur / 2.0) - (32-y_bruit)
99 print x_bruit, y_bruit , offsetxmin, offsetxmax, offsetymin, offsetymax, self.grandeur
100 Mask[x_bruit - self.grandeur/2 + offsetxmin : x_bruit + numpy.ceil(self.grandeur/2.0) - offsetxmax,\ 99 Mask[x_bruit - self.grandeur/2 + offsetxmin : x_bruit + numpy.ceil(self.grandeur/2.0) - offsetxmax,\
101 y_bruit - self.grandeur/2 + offsetymin : y_bruit + numpy.ceil(self.grandeur/2.0)- offsetymax] +=\ 100 y_bruit - self.grandeur/2 + offsetymin : y_bruit + numpy.ceil(self.grandeur/2.0)- offsetymax] +=\
102 self.moy[offsetxmin:self.grandeur - offsetxmax,offsetymin:self.grandeur - offsetymax] 101 self.moy[offsetxmin:self.grandeur - offsetxmax,offsetymin:self.grandeur - offsetymax]
103 print Mask.max(), Mask.min()
104 102
105 return numpy.asarray((image + filtered_image*Mask)/(Mask+1),dtype='float32') 103 return numpy.asarray((image + filtered_image*Mask)/(Mask+1),dtype='float32')
106 104
107 #---TESTS--- 105 #---TESTS---
108 106