Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SpartanBotsOutlab67
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roshan Rabinarayan
SpartanBotsOutlab67
Commits
533bbf2a
Commit
533bbf2a
authored
Sep 30, 2020
by
Samarth Joshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
q6 ez pz gg
parent
dd98cd52
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
q6/key.txt
q6/key.txt
+1
-0
q6/q6.py
q6/q6.py
+10
-1
q6/result.png
q6/result.png
+0
-0
No files found.
q6/key.txt
0 → 100644
View file @
533bbf2a
d23ffe8fffdc9cd149dfe31ae1418b30
q6/q6.py
View file @
533bbf2a
##Do it here##
import
numpy
as
np
from
matplotlib
import
pyplot
as
plt
encoded_input
=
np
.
load
(
'decode_this.npy'
)
# a = 0
# b = 255
# c = 100.0
# d = 100.00255
result
=
(
encoded_input
-
100.0
)
*
(
255
)
/
(
0.00255
)
plt
.
imsave
(
'result.png'
,
result
.
astype
(
np
.
uint8
))
\ No newline at end of file
q6/result.png
0 → 100644
View file @
533bbf2a
10.2 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment