|
|
|
@ -10,9 +10,9 @@ class Nnf:
|
|
|
|
|
|
|
|
|
|
def randomize(self):
|
|
|
|
|
self.field = np.zeros((self.input.height, self.input.width, 3), dtype=int)
|
|
|
|
|
self.field[:,:,2] += MaskedImage.DSCALE
|
|
|
|
|
self.field[:,:,0] = np.random.randint(0,self.output.width,self.input.width)
|
|
|
|
|
self.field[:,:,1] = np.random.randint(0,self.output.height,self.input.height)
|
|
|
|
|
self.field[:,:,2] = MaskedImage.DSCALE
|
|
|
|
|
self.field[:,:,0] = np.random.randint(0,self.output.width,(self.input.height,self.input.width))
|
|
|
|
|
self.field[:,:,1] = np.random.randint(0,self.output.height,(self.input.height,self.input.width))
|
|
|
|
|
self.initialize()
|
|
|
|
|
|
|
|
|
|
def initializeFromNnf(self,nnf):
|
|
|
|
|