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
824f26de
Commit
824f26de
authored
Jul 18, 2022
by
Bryce Hepner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
big code run
parent
5d150231
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1001 additions
and
1975 deletions
+1001
-1975
FPNprojstart.py
FPNprojstart.py
+4
-4
information_weird_array.csv
information_weird_array.csv
+997
-1971
No files found.
FPNprojstart.py
View file @
824f26de
...
...
@@ -56,14 +56,14 @@ information_array = np.zeros((len(images),3))
def
celcius_to_kelvin
(
celcius
):
return
celcius
+
273.15
for
i
in
range
(
1000
):
for
i
in
range
(
len
(
images
)
):
image_array
=
np
.
array
(
Image
.
open
(
sftp_client
.
open
(
images
[
i
])))
.
astype
(
np
.
uint16
)
current_frame_count
=
intarray_to_uint32
(
repopulate_array_with_bitstring
(
uint16_array_to_bitstring
(
image_array
[
0
]))[
84
:
88
])
frame_count_at_FFC
=
intarray_to_uint32
(
repopulate_array_with_bitstring
(
uint16_array_to_bitstring
(
image_array
[
0
]))[
88
:
92
])
# signaltonoise.append(1/np.std(image_array[1:]))
information_array
[
i
,
0
]
=
current_frame_count
-
frame_count_at_FFC
# information_array[i,-1] = 1/np.std(image_array[1:])
information_array
[
i
,
-
1
]
=
mean_squared_error
(
gaussian_filter
(
image_array
[
1
:],
sigma
=
.
2
),
image_array
[
1
:])
information_array
[
i
,
-
1
]
=
mean_squared_error
(
gaussian_filter
(
image_array
[
1
:],
sigma
=
.
4
),
image_array
[
1
:])
# print(repopulate_array_with_bitstring(uint16_array_to_bitstring(image_array[0]))[76:77])
# print("start")
information_array
[
i
,
1
]
=
intarray_to_uint32
(
repopulate_array_with_bitstring
(
uint16_array_to_bitstring
(
image_array
[
0
]))[
94
:
96
])
-
\
...
...
@@ -91,8 +91,8 @@ plt.legend()
plt
.
xlabel
(
"Frame_Spacing"
)
plt
.
ylabel
(
"Signal_to_Noise"
)
plt
.
show
()
print
(
np
.
max
(
information_array
[:,
0
]))
print
(
information_array
[
-
5
:
-
1
,
0
])
#
print(np.max(information_array[:,0]))
#
print(information_array[-5:-1,0])
X
=
sm
.
add_constant
(
information_df
.
drop
([
"Signal_to_Noise"
],
axis
=
1
))
...
...
information_weird_array.csv
View file @
824f26de
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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