1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-26 18:14:23 +00:00
hpc-2022-g3/hls/assignment/sobel/generate_image.py

9 lines
182 B
Python
Raw Normal View History

2022-12-18 23:00:31 +00:00
import random
l = "uint8_t input[512*512] = {\n"
for i in range((512*512)-1):
l += str(random.randint(0,255))
l += ",\n"
l += str(random.randint(0,255))
l += "};\n"
print(l)