Skip to content

Commit

Permalink
remove "zoom"
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmav committed Jun 20, 2021
1 parent 596a72e commit 9859041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LayerUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def process_image(self, parameters):
square = np.reshape(image_frame_array, (-1, int(self.layer_size ** (1 / 2.0))))
spike_count = np.sum(square)
# "Zoom/Expand" array to make images "nicer"
square = np.kron(square, np.ones((10, 10)))
# square = np.kron(square, np.ones((10, 10)))
# here magic
rgb_per_spike = ((255*1000) / (self.group_frames * self.max_spiking_rate))
square = square * (rgb_per_spike if rgb_per_spike < 255 else 255)
Expand Down

0 comments on commit 9859041

Please sign in to comment.