Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
image-compression
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
image-compression
Commits
596da333
Commit
596da333
authored
Jul 13, 2022
by
Bryce Hepner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deleted many files and testing code
parent
fe1a66d3
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
1017 deletions
+12
-1017
1626032610_393963_0.xcf
1626032610_393963_0.xcf
+0
-0
Encoding_decoding.ipynb
Encoding_decoding.ipynb
+6
-1
Remove_Noise.py
Remove_Noise.py
+2
-0
SameTableEncoder.ipynb
SameTableEncoder.ipynb
+0
-802
WorkingPyDemo.py
WorkingPyDemo.py
+4
-7
backup.txt
backup.txt
+0
-207
No files found.
1626032610_393963_0.xcf
deleted
100644 → 0
View file @
fe1a66d3
File deleted
Encoding_decoding.ipynb
View file @
596da333
...
...
@@ -595,7 +595,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3
(ipykernel)
",
"display_name": "Python 3
.8.10 64-bit
",
"language": "python",
"name": "python3"
},
...
...
@@ -610,6 +610,11 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
},
"vscode": {
"interpreter": {
"hash": "916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1"
}
}
},
"nbformat": 4,
...
...
Remove_Noise.py
View file @
596da333
...
...
@@ -172,10 +172,12 @@ def create_testable_images(images, selected_channel, quantity_of_images):
# average_image = Image.fromarray(average_image)
sftp_client
.
close
()
def
save_new_gauss
():
"""
\
creates gaussian kernel with side length `l` and a sigma of `sig`
"""
# x,y = np.mgrid[-1:1:.003125, -1:1:.003125]
x
,
y
=
np
.
mgrid
[
-
1
:
1
:
.44
,
-
1
:
1
:
.44
]
print
(
x
.
shape
)
...
...
SameTableEncoder.ipynb
deleted
100644 → 0
View file @
fe1a66d3
This diff is collapsed.
Click to expand it.
WorkingPyDemo.py
View file @
596da333
...
...
@@ -515,7 +515,7 @@ def text_to_tiff(filename, list_dic, bins):
if
__name__
==
"__main__"
:
scenes
=
file_extractor
(
"
averaged_images(11)
"
)
scenes
=
file_extractor
(
"
images
"
)
images
=
image_extractor
(
scenes
)
newnamesforlater
=
[]
list_dic
,
bins
=
make_dictionary
(
images
,
4
,
False
)
...
...
@@ -534,16 +534,13 @@ if __name__ == "__main__":
newname
=
images
[
i
][:
-
5
]
else
:
newname
=
images
[
i
][:
-
4
]
# print(newname)
newnamesforlater
.
append
(
newname
+
"_Compressed.txt"
)
with
open
(
newname
+
"_Compressed.txt"
,
'wb'
)
as
f
:
f
.
write
(
inletters
)
file_sizes_new
.
append
((
os
.
path
.
getsize
(
newname
+
"_Compressed.txt"
)))
file_sizes_old
.
append
((
os
.
path
.
getsize
(
images
[
i
])))
# sleep(5)
# if i % 50 == 0:
# print(i)
# sleep(20)
print
(
file_sizes_new
)
print
(
file_sizes_old
)
print
(
np
.
sum
(
file_sizes_new
)
/
np
.
sum
(
file_sizes_old
))
...
...
@@ -551,7 +548,7 @@ if __name__ == "__main__":
print
(
np
.
sum
(
file_sizes_new
)
/
np
.
sum
(
file_sizes_old
))
# list_dic = np.load("first_dic.npy", allow_pickle="TRUE")
bins
=
[
21
,
32
,
48
]
# os.system("ls")
# for i,item in enumerate(newnamesforlater):
# print(item)
# image, new_error, diff = huffman(images[i], 4, False)
...
...
backup.txt
deleted
100644 → 0
View file @
fe1a66d3
This diff is collapsed.
Click to expand it.
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