1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-23 00:24:23 +00:00
hpc-2022-g3/hls/assignment/sobel/generate_image.py
Alessandro Capotondi 7cab92df26 Added HLS Assignments
2022-12-19 00:00:31 +01:00

9 lines
No EOL
182 B
Python

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)