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
62b8cccf
Commit
62b8cccf
authored
Feb 05, 2022
by
Kelly Chang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kelly changes
parent
0b79d1b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
prediction_MSE-checkpoint.ipynb
.ipynb_checkpoints/prediction_MSE-checkpoint.ipynb
+5
-4
prediction_MSE.ipynb
prediction_MSE.ipynb
+5
-4
No files found.
.ipynb_checkpoints/prediction_MSE-checkpoint.ipynb
View file @
62b8cccf
...
...
@@ -73,7 +73,7 @@
},
{
"cell_type": "code",
"execution_count": 8
1
,
"execution_count": 8
7
,
"id": "9ed20f84",
"metadata": {},
"outputs": [],
...
...
@@ -120,14 +120,15 @@
" y = np.array([-z[0]+z[2]-z[3], z[0]+z[1]+z[2], -z[0]-z[1]-z[2]-z[3]])\n",
" predict[r,c] = np.linalg.solve(A,y)[-1]\n",
" diff[r,c] = (np.max(actual_surrounding)-np.min(actual_surrounding))\n",
" \n",
" predict = np.ravel(predict[1:-1,1:-1])\n",
" diff = np.ravel(diff[1:-1,1:-1])\n",
" image = np.ravel(image[1:-1,1:-1])\n",
" return image, predict, diff"
]
},
{
"cell_type": "code",
"execution_count": 8
2
,
"execution_count": 8
8
,
"id": "8e3ef654",
"metadata": {},
"outputs": [],
...
...
@@ -139,7 +140,7 @@
},
{
"cell_type": "code",
"execution_count": 8
3
,
"execution_count": 8
9
,
"id": "dda442ae",
"metadata": {},
"outputs": [
...
...
prediction_MSE.ipynb
View file @
62b8cccf
...
...
@@ -73,7 +73,7 @@
},
{
"cell_type": "code",
"execution_count": 8
1
,
"execution_count": 8
7
,
"id": "9ed20f84",
"metadata": {},
"outputs": [],
...
...
@@ -120,14 +120,15 @@
" y = np.array([-z[0]+z[2]-z[3], z[0]+z[1]+z[2], -z[0]-z[1]-z[2]-z[3]])\n",
" predict[r,c] = np.linalg.solve(A,y)[-1]\n",
" diff[r,c] = (np.max(actual_surrounding)-np.min(actual_surrounding))\n",
" \n",
" predict = np.ravel(predict[1:-1,1:-1])\n",
" diff = np.ravel(diff[1:-1,1:-1])\n",
" image = np.ravel(image[1:-1,1:-1])\n",
" return image, predict, diff"
]
},
{
"cell_type": "code",
"execution_count": 8
2
,
"execution_count": 8
8
,
"id": "8e3ef654",
"metadata": {},
"outputs": [],
...
...
@@ -139,7 +140,7 @@
},
{
"cell_type": "code",
"execution_count": 8
3
,
"execution_count": 8
9
,
"id": "dda442ae",
"metadata": {},
"outputs": [
...
...
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