summaryrefslogtreecommitdiff
path: root/image_processing/array2rgb32.py
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-10-04 16:46:57 -0600
committerAlejandro Soto <alejandro@34project.org>2023-10-04 16:46:57 -0600
commit865a1e8ca820da17a9f9c034677a7a959ddaee36 (patch)
tree8331511442ce7746e58fb798b2ad036915ac68be /image_processing/array2rgb32.py
parent972678950297ab158541a8afec2cbcd01a996959 (diff)
app, doc, image_processing, tb/sim/descifrador: remove;5D
Diffstat (limited to '')
-rwxr-xr-ximage_processing/array2rgb32.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/image_processing/array2rgb32.py b/image_processing/array2rgb32.py
deleted file mode 100755
index 167aa74..0000000
--- a/image_processing/array2rgb32.py
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env python3
-
-import sys
-import numpy as np
-from PIL import Image
-import matplotlib.pyplot as plt
-
-def get_base_image(image):
- image = Image.fromarray(np.uint8(image))
- image = image.convert(mode="RGBA", colors=256)
-
- if image.size != (640, 480): # width, height
- image = image.resize(size=(640, 480))
-
- return image
-
-def show_image(image):
- plt.imshow(image)
- plt.show()
-
-image = get_base_image(eval(input("")))
-image_bytes = image.tobytes()
-
-#show_image(image)
-
-out_file, = sys.argv[1:]
-
-with open(out_file, 'wb') as f:
- f.write(image_bytes)