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
68760567
Commit
68760567
authored
Mar 03, 2022
by
Nathaniel Callens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
da4cfd74
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
38 deletions
+28
-38
Error_to_Image-checkpoint.ipynb
.ipynb_checkpoints/Error_to_Image-checkpoint.ipynb
+14
-19
Error_to_Image.ipynb
Error_to_Image.ipynb
+14
-19
No files found.
.ipynb_checkpoints/Error_to_Image-checkpoint.ipynb
View file @
68760567
...
...
@@ -120,7 +120,7 @@
},
{
"cell_type": "code",
"execution_count":
37
2,
"execution_count":
40
2,
"id": "434e4d2f",
"metadata": {},
"outputs": [],
...
...
@@ -150,12 +150,12 @@
" print(new_e[r][c])\n",
" print(np.linalg.solve(A,y)[-1])\n",
" print(new_e[r][c] + np.linalg.solve(A,y)[-1])\n",
" print(np.ceil(new_e[r][c]
+
np.linalg.solve(A,y)[-1]))\n",
" print(np.ceil(new_e[r][c]
) + np.floor(
np.linalg.solve(A,y)[-1]))\n",
" \n",
" #Real solution that works, DO NOT DELETE\n",
" new_e[r][c] = int(np.ceil(new_e[r][c] + np.linalg.solve(A,y)[-1])) \n",
" \n",
" #new_e[r][c] = n
ew_e[r][c] + np.ceil
(np.linalg.solve(A,y)[-1])\n",
" #new_e[r][c] = n
p.ceil(new_e[r][c]) + np.floor
(np.linalg.solve(A,y)[-1])\n",
" \n",
" return new_e.astype(int)\n",
" "
...
...
@@ -163,8 +163,8 @@
},
{
"cell_type": "code",
"execution_count":
37
3,
"id": "
ef632a8f
",
"execution_count":
40
3,
"id": "
8d835626
",
"metadata": {},
"outputs": [
{
...
...
@@ -172,9 +172,9 @@
"output_type": "stream",
"text": [
"3.499999999992724\n",
"[
22627
.5]\n",
"[
22631
.]\n",
"[
22631
.]\n"
"[
13644
.5]\n",
"[
13648
.]\n",
"[
13648
.]\n"
]
}
],
...
...
@@ -184,29 +184,24 @@
},
{
"cell_type": "code",
"execution_count":
374
,
"id": "
6e6fb5cd
",
"execution_count":
420
,
"id": "
b54c4328
",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[ True, True, True, ..., True, True, True],\n",
" [ True, True, True, ..., True, True, True],\n",
" [ True, True, True, ..., True, True, True],\n",
" ...,\n",
" [ True, True, True, ..., True, True, True],\n",
" [ True, True, True, ..., True, True, True],\n",
" [ True, True, True, ..., True, True, True]])"
"518"
]
},
"execution_count":
374
,
"execution_count":
420
,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"new_error == im"
"e = np.round(err, 1)\n",
"len(np.unique(e[1:-1, 1:-1]))"
]
}
],
...
...
Error_to_Image.ipynb
View file @
68760567
...
...
@@ -120,7 +120,7 @@
},
{
"cell_type": "code",
"execution_count":
37
2,
"execution_count":
40
2,
"id": "434e4d2f",
"metadata": {},
"outputs": [],
...
...
@@ -150,12 +150,12 @@
" print(new_e[r][c])\n",
" print(np.linalg.solve(A,y)[-1])\n",
" print(new_e[r][c] + np.linalg.solve(A,y)[-1])\n",
" print(np.ceil(new_e[r][c]
+
np.linalg.solve(A,y)[-1]))\n",
" print(np.ceil(new_e[r][c]
) + np.floor(
np.linalg.solve(A,y)[-1]))\n",
" \n",
" #Real solution that works, DO NOT DELETE\n",
" new_e[r][c] = int(np.ceil(new_e[r][c] + np.linalg.solve(A,y)[-1])) \n",
" \n",
" #new_e[r][c] = n
ew_e[r][c] + np.ceil
(np.linalg.solve(A,y)[-1])\n",
" #new_e[r][c] = n
p.ceil(new_e[r][c]) + np.floor
(np.linalg.solve(A,y)[-1])\n",
" \n",
" return new_e.astype(int)\n",
" "
...
...
@@ -163,8 +163,8 @@
},
{
"cell_type": "code",
"execution_count":
37
3,
"id": "
ef632a8f
",
"execution_count":
40
3,
"id": "
8d835626
",
"metadata": {},
"outputs": [
{
...
...
@@ -172,9 +172,9 @@
"output_type": "stream",
"text": [
"3.499999999992724\n",
"[
22627
.5]\n",
"[
22631
.]\n",
"[
22631
.]\n"
"[
13644
.5]\n",
"[
13648
.]\n",
"[
13648
.]\n"
]
}
],
...
...
@@ -184,29 +184,24 @@
},
{
"cell_type": "code",
"execution_count":
374
,
"id": "
6e6fb5cd
",
"execution_count":
420
,
"id": "
b54c4328
",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[ True, True, True, ..., True, True, True],\n",
" [ True, True, True, ..., True, True, True],\n",
" [ True, True, True, ..., True, True, True],\n",
" ...,\n",
" [ True, True, True, ..., True, True, True],\n",
" [ True, True, True, ..., True, True, True],\n",
" [ True, True, True, ..., True, True, True]])"
"518"
]
},
"execution_count":
374
,
"execution_count":
420
,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"new_error == im"
"e = np.round(err, 1)\n",
"len(np.unique(e[1:-1, 1:-1]))"
]
}
],
...
...
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