Commit b0556840 authored by Samarth Joshi's avatar Samarth Joshi

adding c and d dynamically

parent 4ce18c48
...@@ -4,7 +4,7 @@ from matplotlib import pyplot as plt ...@@ -4,7 +4,7 @@ from matplotlib import pyplot as plt
encoded_input = np.load('decode_this.npy') encoded_input = np.load('decode_this.npy')
# a = 0 # a = 0
# b = 255 # b = 255
# c = 100.0 c = np.amin(encoded_input) # c = 100.0
# d = 100.00255 d = np.amax(encoded_input) # d = 100.00255
result = (encoded_input-100.0)*(255)/(0.00255) result = (encoded_input-c)*(255)/(d-c)
plt.imsave('result.png', result.astype(np.uint8)) plt.imsave('result.png', result.astype(np.uint8))
\ No newline at end of file
q6/result.png

10.2 KB | W: | H:

q6/result.png

10.1 KB | W: | H:

q6/result.png
q6/result.png
q6/result.png
q6/result.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment