diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-10-04 16:46:57 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-10-04 16:46:57 -0600 |
| commit | 865a1e8ca820da17a9f9c034677a7a959ddaee36 (patch) | |
| tree | 8331511442ce7746e58fb798b2ad036915ac68be /image_processing/not.py | |
| parent | 972678950297ab158541a8afec2cbcd01a996959 (diff) | |
app, doc, image_processing, tb/sim/descifrador: remove;5D
Diffstat (limited to '')
| -rw-r--r-- | image_processing/not.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/image_processing/not.py b/image_processing/not.py deleted file mode 100644 index be43e9f..0000000 --- a/image_processing/not.py +++ /dev/null @@ -1,23 +0,0 @@ -import sys -import math -from itertools import cycle - -source, target = sys.argv[1:] - -target = open(target,"ab") - -with open(source, 'rb') as source: - image_bytes = source.read() - i = 0 - x = 0 - for n in image_bytes: - if not (i == 3): - x = n ^ 0b11111111 - i += 1 - else: - x = n - i = 0 - - target.write(bytes([x])) - -target.close() |
