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
Nathaniel Callens
Image Compression
Commits
cbba7336
Commit
cbba7336
authored
Feb 24, 2022
by
Nathaniel Callens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compression try
parent
0bc96f0e
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1292 additions
and
258 deletions
+1292
-258
prediction_MSE_Scout-checkpoint.ipynb
.ipynb_checkpoints/prediction_MSE_Scout-checkpoint.ipynb
+235
-129
adaptive_arithmetic_compress.py
adaptive_arithmetic_compress.py
+57
-0
arithmetic.py
arithmetic.py
+167
-0
arithmeticcoding.py
arithmeticcoding.py
+598
-0
prediction_MSE_Scout.ipynb
prediction_MSE_Scout.ipynb
+235
-129
test.craw
test.craw
+0
-0
test.tiff
test.tiff
+0
-0
No files found.
.ipynb_checkpoints/prediction_MSE_Scout-checkpoint.ipynb
View file @
cbba7336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"cells": [
"cells": [
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 7
6
,
"execution_count": 7
2
,
"id": "dbef8759",
"id": "dbef8759",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
...
@@ -16,14 +16,16 @@
...
@@ -16,14 +16,16 @@
"from scipy.optimize import minimize\n",
"from scipy.optimize import minimize\n",
"from time import time\n",
"from time import time\n",
"from numpy import linalg as la\n",
"from numpy import linalg as la\n",
"from scipy.stats import gaussian_kde\n",
"from scipy.stats import gaussian_kde
, entropy
\n",
"import seaborn as sns\n",
"import seaborn as sns\n",
"import pywt"
"import pywt\n",
"import math\n",
"#import cv2"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
2
,
"execution_count":
15
,
"id": "b7a550e0",
"id": "b7a550e0",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
...
@@ -78,7 +80,7 @@
...
@@ -78,7 +80,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
3
,
"execution_count":
16
,
"id": "9ed20f84",
"id": "9ed20f84",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
...
@@ -106,6 +108,7 @@
...
@@ -106,6 +108,7 @@
" y = np.vstack((y0,y1,y2))\n",
" y = np.vstack((y0,y1,y2))\n",
" # use numpy solver to solve the system of equations all at once\n",
" # use numpy solver to solve the system of equations all at once\n",
" predict = np.linalg.solve(A,y)[-1]\n",
" predict = np.linalg.solve(A,y)[-1]\n",
" #predict = []\n",
" # flatten the neighbor pixlels and stack them together\n",
" # flatten the neighbor pixlels and stack them together\n",
" z0 = np.ravel(z0)\n",
" z0 = np.ravel(z0)\n",
" z1 = np.ravel(z1)\n",
" z1 = np.ravel(z1)\n",
...
@@ -114,6 +117,15 @@
...
@@ -114,6 +117,15 @@
" neighbor = np.vstack((z0,z1,z2,z3)).T\n",
" neighbor = np.vstack((z0,z1,z2,z3)).T\n",
" # calculate the difference\n",
" # calculate the difference\n",
" diff = np.max(neighbor,axis = 1) - np.min(neighbor, axis=1)\n",
" diff = np.max(neighbor,axis = 1) - np.min(neighbor, axis=1)\n",
" \n",
" \"\"\"for i in range(len(neighbor)):\n",
" if neighbor[i][0] >= max(neighbor[i][3], neighbor[i][1]):\n",
" predict.append(min(neighbor[i][3], neighbor[i][1]))\n",
" elif neighbor[i][0] < min(neighbor[i][3], neighbor[i][1]):\n",
" predict.append(max(neighbor[i][3], neighbor[i][1]))\n",
" else:\n",
" predict.append(neighbor[i][3] + neighbor[i][1] - neighbor[i][0])\"\"\"\n",
" \n",
" # flatten the image to a vector\n",
" # flatten the image to a vector\n",
" image_ravel = np.ravel(image[1:-1,1:-1])\n",
" image_ravel = np.ravel(image[1:-1,1:-1])\n",
" return image_ravel, predict, diff, image"
" return image_ravel, predict, diff, image"
...
@@ -121,14 +133,14 @@
...
@@ -121,14 +133,14 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
4
,
"execution_count":
17
,
"id": "8e3ef654",
"id": "8e3ef654",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
"scenes = file_extractor()\n",
"scenes = file_extractor()\n",
"images = image_extractor(scenes)\n",
"images = image_extractor(scenes)\n",
"num_images = im_distribution(images, \"_
9
\")\n",
"num_images = im_distribution(images, \"_
1
\")\n",
"error_mean = []\n",
"error_mean = []\n",
"error_mean1 = []\n",
"error_mean1 = []\n",
"diff_mean = []\n",
"diff_mean = []\n",
...
@@ -156,7 +168,7 @@
...
@@ -156,7 +168,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
5
,
"execution_count":
18
,
"id": "fa65dcd6",
"id": "fa65dcd6",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
...
@@ -164,15 +176,15 @@
...
@@ -164,15 +176,15 @@
"name": "stdout",
"name": "stdout",
"output_type": "stream",
"output_type": "stream",
"text": [
"text": [
"Average Error
First and Second Added: 20.017164930235474
\n",
"Average Error
: 19.44221679267325
\n",
"Standard Deviaiton of Mean Errors: 0.1
6101183692475135
\n",
"Standard Deviaiton of Mean Errors: 0.1
7734010606906342
\n",
"Average Difference: 5
3.67864842645522
6\n",
"Average Difference: 5
1.9543015090048
6\n",
"Average Time per Image for First: 0.
1089103221893310
5\n"
"Average Time per Image for First: 0.
0491750836372375
5\n"
]
]
}
}
],
],
"source": [
"source": [
"print(f\"Average Error
First and Second Added
: {np.mean(error_mean)}\")\n",
"print(f\"Average Error: {np.mean(error_mean)}\")\n",
"print(f\"Standard Deviaiton of Mean Errors: {np.sqrt(np.var(error_mean))}\")\n",
"print(f\"Standard Deviaiton of Mean Errors: {np.sqrt(np.var(error_mean))}\")\n",
"print(f\"Average Difference: {np.mean(diff_mean)}\")\n",
"print(f\"Average Difference: {np.mean(diff_mean)}\")\n",
"print(f\"Average Time per Image for First: {np.mean(times)}\")"
"print(f\"Average Time per Image for First: {np.mean(times)}\")"
...
@@ -180,7 +192,7 @@
...
@@ -180,7 +192,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
6
,
"execution_count":
19
,
"id": "4c05b947",
"id": "4c05b947",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
...
@@ -190,13 +202,13 @@
...
@@ -190,13 +202,13 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
7
,
"execution_count":
21
,
"id": "dda442ae",
"id": "dda442ae",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"data": {
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA
Y4AAAEGCAYAAABy53LJAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAnxklEQVR4nO3de5hU9Z3n8fe3qm94QxFUBCKoLYI3MAgkajReQTODxkxGk6jjZGRMJBMnmd0l2dmMszvJ42YncZKJl2jiRncSL5MYg5FIkIh4Q0GjCCIBuQjSykUiBqS7q+q7f5zTbVFU01VFnTp1+byep56qc6v6nnqK/nB+5/x+x9wdERGRQiXiLkBERGqLgkNERIqi4BARkaIoOEREpCgKDhERKUpT3AVUwuDBg33kyJFxlyEiUlNeeOGFLe4+JHd+QwTHyJEjWbx4cdxliIjUFDNbl2++mqpERKQoCg4RESmKgkNERIqi4BARkaIoOEREpCgKDhERKYqCQ0REiqLgKBcNTy8iDULBUQ7vrIYfnAb3fw5SXXFXIy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8DP01FZR4Dre6nzmKRv8dr04P8aEY+nK+uZDQqebdjMzKrCl7zMzKwqnFDMzKwqnFDMzKwqnFDMzKwqnFDMzKwqnFDMzKwqnFDMzKwq/n9a38AEPPLXOgAAAABJRU5ErkJggg==
\n",
"text/plain": [
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
"<Figure size 432x288 with 1 Axes>"
]
]
...
@@ -208,7 +220,7 @@
...
@@ -208,7 +220,7 @@
}
}
],
],
"source": [
"source": [
"new_error = n
p.abs(new_image-new_pred)
\n",
"new_error = n
ew_image-new_pred
\n",
"plt.hist(new_error, bins=20, density=True)\n",
"plt.hist(new_error, bins=20, density=True)\n",
"sns.kdeplot(new_error)\n",
"sns.kdeplot(new_error)\n",
"plt.xlabel(\"error\")\n",
"plt.xlabel(\"error\")\n",
...
@@ -217,58 +229,63 @@
...
@@ -217,58 +229,63 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
8
,
"execution_count":
41
,
"id": "58da6063",
"id": "58da6063",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"data": {
"name": "stdout",
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAZsAAAEICAYAAACJalkVAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAAsTAAALEwEAmpwYAAA3Y0lEQVR4nO3deZxcVZn/8c+3qjsr2TrpLCSELIQlCARoQhBQQZYEkICKEhAQcQIK4zY/Jag4bjMDOjojIxJBEaJgQBAIkhg2IyAEEiRkXzohJJ21Ozudtbue3x/3dlLpVFff6u7qqnQ979erXlV17jn3nnsp8vQ599xzZGY455xz2RTLdQWcc861fR5snHPOZZ0HG+ecc1nnwcY551zWebBxzjmXdR5snHPOZV1Wg42k0ZKWSCqXNCHFdkm6J9w+V9JpjZWV9FNJi8P8T0nqnrTtjjD/EkkXJ6WfLmleuO0eScriaTvnnK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DxRs63+c5sD4LkkZkdmqurfJg41zwj/ZT9dKeBK4huOewCpgr6d0wDeB+YFrdAAFgAvAX4GWCRbDqfB/4k6RXgarmVlTSscAXgX8zs1cJusm+a2bPE6yN8oakeQQDALo0vKf9/kjQFTcZwMzeJeiKW0AQhP7RQLmGzvcrQFk4SGEhcEtmZ+jaKp/12TnnXNZ5y8Y551zWebBxzjmXdR5snHPOZZ0HG+ecc1nnwcY551zWebBxzjmXdR5snHPOZZ0HG+ecc1n3/wE8vk1auHCPQAAAAABJRU5ErkJggg==\n",
"output_type": "stream",
"text/plain": [
"text": [
"<Figure size 432x288 with 1 Axes>"
"Std Deviation of E: 26.627504708827136\n",
"Normal bits: 15\n",
"Encoded Bits: 6.677845333316752\n"
]
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
}
],
],
"source": [
"source": [
"plt.hist(new_image, bins=25, density=True)\n",
"image = Image.open(images[0]) #Open the image and read it as an Image object\n",
"sns.kdeplot(new_image)\n",
"image = np.array(image)[1:,:] #Convert to an array, leaving out the first row because the first row is just housekeeping data\n",
"plt.xlabel(\"Actual Pixel Value\")\n",
"image = image.astype(np.int64)\n",
"plt.show()"
"print(\"Std Deviation of E: \", np.std(new_error))\n",
"print(\"Normal bits: \", int(image[0][0]).bit_length())\n",
"H = np.log2(np.std(new_error)) + 1.943\n",
"print(\"Encoded Bits: \", H)"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 79,
"execution_count": 47,
"id": "2562feeb",
"id": "ec4db902",
"metadata": {
"metadata": {},
"scrolled": false
},
"outputs": [
"outputs": [
{
{
"name": "stdout",
"name": "stdout",
"output_type": "stream",
"output_type": "stream",
"text": [
"text": [
"(512, 640)\n",
"8192\n"
"1310832\n",
"9\n"
]
]
}
}
],
],
"source": []
},
{
"cell_type": "code",
"execution_count": 9,
"id": "2562feeb",
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"source": [
"f_r = no_ravel[0]\n",
"pred = new_pred.reshape((510,638))\n",
"print(no_ravel.shape)\n",
"real_pred = no_ravel.copy()\n",
"print(sys.getsizeof(no_ravel))\n",
"real_pred[1:-1, 1:-1] = pred"
"print((256).bit_length())"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
99
,
"execution_count":
10
,
"id": "470cc137",
"id": "470cc137",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
...
@@ -285,7 +302,7 @@
...
@@ -285,7 +302,7 @@
"'print(decompress)\\nprint(np.mean(np.abs(decompress-no_ravel)))'"
"'print(decompress)\\nprint(np.mean(np.abs(decompress-no_ravel)))'"
]
]
},
},
"execution_count":
99
,
"execution_count":
10
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -301,112 +318,201 @@
...
@@ -301,112 +318,201 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
59
,
"execution_count":
null
,
"id": "3292b395",
"id": "3292b395",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [],
"source": []
},
{
{
"name": "stdout",
"cell_type": "code",
"output_type": "stream",
"execution_count": null,
"text": [
"id": "f9687830",
"[72, 101, 108, 108, 111, 32, 109, 121, 32, 110, 97, 109, 101, 32, 105, 115, 32, 83, 99, 111, 117, 116]\n",
"metadata": {},
"256\n",
"outputs": [],
"71\n"
"source": []
},
{
"cell_type": "code",
"execution_count": 13,
"id": "e98eed4b",
"metadata": {},
"outputs": [],
"source": [
"f = open(\"test.craw\", \"wb\")\n",
"f.write(real_pred.tobytes())\n",
"f.close()"
]
]
}
},
],
{
"cell_type": "code",
"execution_count": 12,
"id": "b7e88aab",
"metadata": {},
"outputs": [],
"source": [
"source": [
"def compress(uncompressed):\n",
"# Apply arithmetic coding to compress it\n",
" \"\"\"Compress a string to a list of output symbols.\"\"\"\n",
"import adaptive_arithmetic_compress\n",
" \n",
"adaptive_arithmetic_compress.main([\"test.craw\", \"test.tiff\"])"
" # Build the dictionary.\n",
" dict_size = 256\n",
" dictionary = dict((chr(i), i) for i in range(dict_size))\n",
" # in Python 3: dictionary = {chr(i): i for i in range(dict_size)}\n",
"\n",
" w = \"\"\n",
" result = []\n",
" for c in uncompressed:\n",
" wc = w + c\n",
" if wc in dictionary:\n",
" w = wc\n",
" else:\n",
" result.append(dictionary[w])\n",
" # Add wc to the dictionary.\n",
" dictionary[wc] = dict_size\n",
" dict_size += 1\n",
" w = c\n",
" \n",
" # Output the code for w.\n",
" if w:\n",
" result.append(dictionary[w])\n",
" return result\n",
"\n",
"store = compress(\"Hello my name is Scout\")\n",
"print(store)\n",
"print(sys.getsizeof(store))\n",
"print(sys.getsizeof(\"Hello my name is Scout\"))"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1
0
1,
"execution_count": 11,
"id": "
f9687830
",
"id": "
7c8abaee
",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"ename": "ValueError",
"data": {
"evalue": "too many values to unpack (expected 2)",
"text/plain": [
"output_type": "error",
"'change = Image.open(\"test.tiff\")\\nchange = np.array(change)\\nprint(change.shape)'"
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mValueError\u001b[0m Traceback (most recent call last)",
"\u001b[1;32m~\\AppData\\Local\\Temp/ipykernel_22104/2202774112.py\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m 18\u001b[0m \u001b[0mtimes\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstop\u001b[0m\u001b[1;33m-\u001b[0m\u001b[0mstart\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 19\u001b[0m \u001b[1;32mreturn\u001b[0m \u001b[0mtimes\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 20\u001b[1;33m \u001b[0mti\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mwave_decompress\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcoef\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 21\u001b[0m \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mnp\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mmean\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mti\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
"\u001b[1;32m~\\AppData\\Local\\Temp/ipykernel_22104/2202774112.py\u001b[0m in \u001b[0;36mwave_decompress\u001b[1;34m(coeffs)\u001b[0m\n\u001b[0;32m 14\u001b[0m \u001b[1;32mfor\u001b[0m \u001b[0mi\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mrange\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mlen\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcoeffs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 15\u001b[0m \u001b[0mstart\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mtime\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 16\u001b[1;33m \u001b[0mdecompress\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mpywt\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0midwt2\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcoeffs\u001b[0m\u001b[1;33m[\u001b[0m\u001b[0mi\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;34m'bior1.3'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 17\u001b[0m \u001b[0mstop\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mtime\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 18\u001b[0m \u001b[0mtimes\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstop\u001b[0m\u001b[1;33m-\u001b[0m\u001b[0mstart\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
"\u001b[1;32m~\\anaconda3\\lib\\site-packages\\pywt\\_multidim.py\u001b[0m in \u001b[0;36midwt2\u001b[1;34m(coeffs, wavelet, mode, axes)\u001b[0m\n\u001b[0;32m 110\u001b[0m \"\"\"\n\u001b[0;32m 111\u001b[0m \u001b[1;31m# L -low-pass data, H - high-pass data\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 112\u001b[1;33m \u001b[0mLL\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;33m(\u001b[0m\u001b[0mHL\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mLH\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mHH\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mcoeffs\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 113\u001b[0m \u001b[0maxes\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mtuple\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0maxes\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 114\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0maxes\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;33m!=\u001b[0m \u001b[1;36m2\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
"\u001b[1;31mValueError\u001b[0m: too many values to unpack (expected 2)"
]
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
}
],
],
"source": [
"source": [
"def wavelet(num_images, i): \n",
"\"\"\"change = Image.open(\"test.tiff\")\n",
"change = np.array(change)\n",
"print(change.shape)\"\"\""
]
},
{
"cell_type": "code",
"execution_count": 114,
"id": "82c20d94",
"metadata": {},
"outputs": [],
"source": [
"def compress(inputFile):#, outputFile):\n",
" twoBytes = 256*256\n",
" # Read the input file into a numpy array of 8-bit values\n",
" #\n",
" # The img.shape is a 3-type with rows,columns,channels, where\n",
" # channels is the number of components in each pixel. The img.dtype\n",
" # is 'uint8', meaning that each component is an 8-bit unsigned\n",
" # integer.\n",
"\n",
"\n",
"
image = Image.open(num_images[i]) #Open the image and read it as an Image object
\n",
"
#img = netpbm.imread(inputFile).astype('uint8')
\n",
" im
age = np.array(im)[1:,:]
\n",
" im
g = Image.open(inputFile) #Open the image and read it as an Image object
\n",
"
coeffs = pywt.dwt2(image, 'bior1.3')
\n",
"
img = np.array(img)[1:,:] #Convert to an array, leaving out the first row because the first row is just housekeeping data
\n",
"
return coeffs
\n",
"
img = img.astype('uint8')
\n",
"\n",
"\n",
" \n",
"\n",
"\n",
"coef, t = wavelet(num_images,0)\n",
" # Compress the image\n",
" #\n",
" #\n",
" # Note that single-channel images will have a 'shape' with only two\n",
" # components: the y dimensions and the x dimension. So you will\n",
" # have to detect this and set the number of channels accordingly.\n",
" # Furthermore, single-channel images must be indexed as img[y,x]\n",
" # instead of img[y,x,1]. You'll need two pieces of similar code:\n",
" # one piece for the single-channel case and one piece for the\n",
" # multi-channel case.\n",
"\n",
"\n",
"def wave_decompress(coeffs):\n",
" #startTime = time.time()\n",
" times = []\n",
"\n",
" for i in range(len(coeffs)):\n",
" outputBytes = bytearray()\n",
" start = time()\n",
"\n",
" decompress = pywt.idwt2(coeffs[i], 'bior1.3')\n",
" # initialize dictionary\n",
" stop = time()\n",
" d = {}\n",
" times.append(stop-start)\n",
" counter = 256\n",
" return times\n",
" for i in range(-counter, counter):\n",
"ti = wave_decompress(coef)\n",
" d[str(i)] = i\n",
"print(np.mean(ti))"
" # Set Dictionary limit\n",
"\n",
" # Make a list to hold bytes\n",
" tempBytes = []\n",
" # A counter for the number of bytes\n",
" numBytes = 0\n",
" multichannel = False\n",
" \n",
" # for a single channel image\n",
" if (len(img.shape) == 2) :\n",
" multichannel = False\n",
" \n",
" # Go through whole image\n",
" for y in range(img.shape[0]):\n",
" for x in range(img.shape[1]):\n",
" # Initialize prediction to image value\n",
" prediction = img[y][x]\n",
" #\"\"\" \n",
" # Modify prediction to show the difference between prior pixels and current pixel\n",
" if(x != 0):\n",
" prediction = prediction - img[y][x-1]\n",
" elif(y != 0):\n",
" prediction = prediction - img[y-1][x]\n",
" else:\n",
" prediction = prediction - (img[y][x-1]/3 + img[y-1][x]/3 + img[y-1][x-1]/3)\n",
" #\"\"\"\n",
" # Add the predicted value to the bytestream\n",
" tempBytes.append(prediction)\n",
" numBytes += 1\n",
" # Using a string variable as it allows for concatenation\n",
" s = \"\"\n",
" # Set s to the first value of the bytestream \n",
" s = str(int(tempBytes[0]))\n",
" # Go through all bytes\n",
" for i in range(1, numBytes):\n",
" # Do LZW encoding\n",
" # If trying to add entry larger than max size of the dictionary reinitialize the dictionary\n",
" if(counter >= twoBytes):\n",
" counter = 256\n",
" d = {}\n",
" for i in range(-counter, counter):\n",
" d[str(i)] = i\n",
"\n",
" # Add the next byte to the current string. Uses a delimeter to distinguish numbers\n",
" w = s +\"|\"+str(int(tempBytes[i]))\n",
" # Checking if it has been seen before\n",
" if w in d:\n",
" s = w\n",
" else:\n",
" # Output bytes by splitting integer into two bytes, this allows for a larger dictionary\n",
" outputBytes.append((int(d[s]) >> 8) & 0xFF)\n",
" outputBytes.append(int(d[s]) & 0xFF)\n",
" # Add to dictionarry\n",
" d[w] = counter\n",
" counter += 1\n",
" s = str(int(tempBytes[i]))\n",
" # Check if the last byte was added or not \n",
" if s in d: \n",
" outputBytes.append((int(d[s]) >> 8) & 0xFF)\n",
" outputBytes.append(int(d[s]) & 0xFF) \n",
" return numBytes, outputBytes, tempBytes"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
null
,
"execution_count":
123
,
"id": "
e98eed4b
",
"id": "
9190b5a8
",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [
"source": []
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\calle\\AppData\\Local\\Temp/ipykernel_1700/265550185.py:56: RuntimeWarning: overflow encountered in ubyte_scalars\n",
" prediction = prediction - img[y][x-1]\n",
"C:\\Users\\calle\\AppData\\Local\\Temp/ipykernel_1700/265550185.py:58: RuntimeWarning: overflow encountered in ubyte_scalars\n",
" prediction = prediction - img[y-1][x]\n"
]
},
},
{
{
"cell_type": "code",
"name": "stdout",
"execution_count": null,
"output_type": "stream",
"id": "b7e88aab",
"text": [
"metadata": {},
"245\n"
"outputs": [],
]
"source": []
}
],
"source": [
"test = images[0]\n",
"comp, out, temp = compress(test)\n",
"print(out[19])"
]
}
}
],
],
"metadata": {
"metadata": {
...
...
adaptive_arithmetic_compress.py
0 → 100644
View file @
cbba7336
#
# Compression application using adaptive arithmetic coding
#
# Usage: python adaptive-arithmetic-compress.py InputFile OutputFile
# Then use the corresponding adaptive-arithmetic-decompress.py application to recreate the original input file.
# Note that the application starts with a flat frequency table of 257 symbols (all set to a frequency of 1),
# and updates it after each byte encoded. The corresponding decompressor program also starts with a flat
# frequency table and updates it after each byte decoded. It is by design that the compressor and
# decompressor have synchronized states, so that the data can be decompressed properly.
#
# Copyright (c) Project Nayuki
#
# https://www.nayuki.io/page/reference-arithmetic-coding
# https://github.com/nayuki/Reference-arithmetic-coding
#
import
sys
import
arithmeticcoding
python3
=
sys
.
version_info
.
major
>=
3
# Command line main application function.
def
main
(
args
):
# Handle command line arguments
if
len
(
args
)
!=
2
:
sys
.
exit
(
"Usage: python adaptive-arithmetic-compress.py InputFile OutputFile"
)
inputfile
=
args
[
0
]
outputfile
=
args
[
1
]
# Perform file compression
with
open
(
inputfile
,
"rb"
)
as
inp
:
bitout
=
arithmeticcoding
.
BitOutputStream
(
open
(
outputfile
,
"wb"
))
try
:
compress
(
inp
,
bitout
)
finally
:
bitout
.
close
()
def
compress
(
inp
,
bitout
):
initfreqs
=
arithmeticcoding
.
FlatFrequencyTable
(
257
)
freqs
=
arithmeticcoding
.
SimpleFrequencyTable
(
initfreqs
)
enc
=
arithmeticcoding
.
ArithmeticEncoder
(
bitout
)
while
True
:
# Read and encode one byte
symbol
=
inp
.
read
(
1
)
if
len
(
symbol
)
==
0
:
break
symbol
=
symbol
[
0
]
if
python3
else
ord
(
symbol
)
enc
.
write
(
freqs
,
symbol
)
freqs
.
increment
(
symbol
)
enc
.
write
(
freqs
,
256
)
# EOF
enc
.
finish
()
# Flush remaining code bits
# Main launcher
if
__name__
==
"__main__"
:
main
(
sys
.
argv
[
1
:
])
arithmetic.py
0 → 100644
View file @
cbba7336
# Example implementation of simple arithmetic coding in Python (2.7+).
#
# USAGE
#
# python -i arithmetic.py
# >>> m = {'a': 1, 'b': 1, 'c': 1}
# >>> model = dirichlet(m)
# >>> encode(model, "aabbaacc")
# '00011110011110010'
#
# NOTES
#
# This implementation has many shortcomings, e.g.,
# - There are several inefficient tests, loops, and conversions
# - There are a few places where code is uncessarily duplicated
# - It does not output the coded message as a stream
# - It can only code short messages due to machine precision
# - The is no defensive coding against errors (e.g., out-of-model symbols)
# - I've not implemented a decoder!
#
# The aim was to make the implementation here as close as possible to
# the algorithm described in lectures while giving some extra detail about
# routines such as finding extensions to binary intervals.
#
# For a more sophisticated implementation, please refer to:
#
# "Arithmetic Coding for Data Compression"
# I. H. Witten, R. M. Neal, and J. G. Cleary
# Communications of the ACM, Col. 30 (6), 1987
#
# AUTHOR: Mark Reid
# CREATED: 2014-09-30
def
encode
(
G
,
stream
):
'''
Arithmetically encodes the given stream using the guesser function G
which returns probabilities over symbols P(x|xs) given a sequence xs.
'''
u
,
v
=
0.0
,
1.0
# The interval [u, v) for the message
xs
,
bs
=
""
,
""
# The message xs, and binary code bs
p
=
G
(
xs
)
# Compute the initial distribution over symbols
# Iterate through stream, repeatedly finding the longest binary code
# that surrounds the interval for the message so far
for
x
in
stream
:
# Record the new symbol
xs
+=
x
# Find the interval for the message so far
F_lo
,
F_hi
=
cdf_interval
(
p
,
x
)
u
,
v
=
u
+
(
v
-
u
)
*
F_lo
,
u
+
(
v
-
u
)
*
F_hi
# Find a binary code whose interval surrounds [u,v)
bs
=
extend_around
(
bs
,
u
,
v
)
# Update the symbol probabilities
p
=
G
(
xs
)
# Stream finished so find shortest extension of the code that sits inside
# the top half of [u, v)
bs
=
extend_inside
(
bs
,
u
+
(
v
-
u
)
/
2
,
v
)
return
bs
##############################################################################
# Models
def
dirichlet
(
m
):
'''
Returns a Dirichlet model (as a function) for probabilities with
prior counts given by the symbol to count dictionary m.
Probabilities returned by the returned functions are (symbol, prob)
dictionaries.
'''
# Build a function that returns P(x|xs) based on the priors in m
# and the counts of the symbols in xs
def
p
(
xs
):
counts
=
m
.
copy
()
for
x
in
xs
:
counts
[
x
]
+=
1
total
=
sum
(
counts
.
values
())
return
{
a
:
float
(
c
)
/
total
for
a
,
c
in
counts
.
items
()
}
# Return the constructed function
return
p
##############################################################################
# Interval methods
def
cdf_interval
(
p
,
a
):
'''
Compute the cumulative distribution interval [F(a'), F(a)) for the
probabilities p (represented as a (symbol,prob) dict) where
F(a) = P(x <= a) and a' is the symbol preceeding a.
'''
F_lo
,
F_hi
=
0
,
0
A
=
sorted
(
p
)
for
x
in
A
:
F_lo
,
F_hi
=
F_hi
,
F_hi
+
p
[
x
]
if
x
==
a
:
break
return
F_lo
,
F_hi
def
binary_interval
(
bs
):
'''
Returns an interval [n, m) for n and m integers, and denominator d
representing the interval [n/d, m/d) for the binary string bs.
'''
n
,
d
=
to_rational
(
bs
)
return
n
,
n
+
1
,
d
def
to_rational
(
bs
):
'''Return numerator and denominator for ratio of 0.bs.'''
n
=
0
for
b
in
bs
:
n
*=
2
n
+=
int
(
b
)
return
n
,
2
**
len
(
bs
)
def
around
(
bs
,
u
,
v
):
'''Tests whether [0.bs, 0.bs111...) contains [u, v).'''
n
,
m
,
d
=
binary_interval
(
bs
)
return
(
n
<=
u
*
d
)
and
(
v
*
d
<=
m
)
def
extend_around
(
bs
,
u
,
v
):
'''Find the longest extension of the given binary string so its interval
wraps around the interval [u, v).'''
contained
=
True
while
contained
:
if
around
(
bs
+
"0"
,
u
,
v
):
bs
+=
"0"
elif
around
(
bs
+
"1"
,
u
,
v
):
bs
+=
"1"
else
:
contained
=
False
return
bs
def
inside
(
bs
,
u
,
v
):
'''Tests whether [0.bs, 0.bs111...) is contained by [u, v).'''
n
,
m
,
d
=
binary_interval
(
bs
)
return
(
u
*
d
<=
n
)
and
(
m
<=
v
*
d
)
def
extend_inside
(
bs
,
u
,
v
):
'''Find the shortest extension of the given binary string so its interval
sits inside the interval [u, v).'''
while
not
inside
(
bs
,
u
,
v
):
# Test whether gap between binary interval and [u,v) is bigger at the
# bottom than at the top
n
,
m
,
d
=
binary_interval
(
bs
)
if
u
*
d
-
n
>
m
-
v
*
d
:
bs
+=
"1"
# If so, move bottom up by halving
else
:
bs
+=
"0"
# If not, move top down by halving
return
bs
arithmeticcoding.py
0 → 100644
View file @
cbba7336
#
# Reference arithmetic coding
# Copyright (c) Project Nayuki
#
# https://www.nayuki.io/page/reference-arithmetic-coding
# https://github.com/nayuki/Reference-arithmetic-coding
#
import
sys
python3
=
sys
.
version_info
.
major
>=
3
# ---- Arithmetic coding core classes ----
# Provides the state and behaviors that arithmetic coding encoders and decoders share.
class
ArithmeticCoderBase
(
object
):
# Number of bits for 'low' and 'high'. Configurable and must be at least 1.
STATE_SIZE
=
32
# Maximum range during coding (trivial), i.e. 1000...000.
MAX_RANGE
=
1
<<
STATE_SIZE
# Minimum range during coding (non-trivial), i.e. 010...010.
MIN_RANGE
=
(
MAX_RANGE
>>
2
)
+
2
# Maximum allowed total frequency at all times during coding.
MAX_TOTAL
=
MIN_RANGE
# Mask of STATE_SIZE ones, i.e. 111...111.
MASK
=
MAX_RANGE
-
1
# Mask of the top bit at width STATE_SIZE, i.e. 100...000.
TOP_MASK
=
MAX_RANGE
>>
1
# Mask of the second highest bit at width STATE_SIZE, i.e. 010...000.
SECOND_MASK
=
TOP_MASK
>>
1
# Constructs an arithmetic coder, which initializes the code range.
def
__init__
(
self
):
# Low end of this arithmetic coder's current range. Conceptually has an infinite number of trailing 0s.
self
.
low
=
0
# High end of this arithmetic coder's current range. Conceptually has an infinite number of trailing 1s.
self
.
high
=
ArithmeticCoderBase
.
MASK
# Updates the code range (low and high) of this arithmetic coder as a result
# of processing the given symbol with the given frequency table.
# Invariants that are true before and after encoding/decoding each symbol:
# - 0 <= low <= code <= high < 2^STATE_SIZE. ('code' exists only in the decoder.)
# Therefore these variables are unsigned integers of STATE_SIZE bits.
# - (low < 1/2 * 2^STATE_SIZE) && (high >= 1/2 * 2^STATE_SIZE).
# In other words, they are in different halves of the full range.
# - (low < 1/4 * 2^STATE_SIZE) || (high >= 3/4 * 2^STATE_SIZE).
# In other words, they are not both in the middle two quarters.
# - Let range = high - low + 1, then MAX_RANGE/4 < MIN_RANGE <= range
# <= MAX_RANGE = 2^STATE_SIZE. These invariants for 'range' essentially
# dictate the maximum total that the incoming frequency table can have.
def
update
(
self
,
freqs
,
symbol
):
# State check
low
=
self
.
low
high
=
self
.
high
if
low
>=
high
or
(
low
&
ArithmeticCoderBase
.
MASK
)
!=
low
or
(
high
&
ArithmeticCoderBase
.
MASK
)
!=
high
:
raise
AssertionError
(
"Low or high out of range"
)
range
=
high
-
low
+
1
if
not
(
ArithmeticCoderBase
.
MIN_RANGE
<=
range
<=
ArithmeticCoderBase
.
MAX_RANGE
):
raise
AssertionError
(
"Range out of range"
)
# Frequency table values check
total
=
freqs
.
get_total
()
symlow
=
freqs
.
get_low
(
symbol
)
symhigh
=
freqs
.
get_high
(
symbol
)
if
symlow
==
symhigh
:
raise
ValueError
(
"Symbol has zero frequency"
)
if
total
>
ArithmeticCoderBase
.
MAX_TOTAL
:
raise
ValueError
(
"Cannot code symbol because total is too large"
)
# Update range
newlow
=
low
+
symlow
*
range
//
total
newhigh
=
low
+
symhigh
*
range
//
total
-
1
self
.
low
=
newlow
self
.
high
=
newhigh
# While the highest bits are equal
while
((
self
.
low
^
self
.
high
)
&
ArithmeticCoderBase
.
TOP_MASK
)
==
0
:
self
.
shift
()
self
.
low
=
(
self
.
low
<<
1
)
&
ArithmeticCoderBase
.
MASK
self
.
high
=
((
self
.
high
<<
1
)
&
ArithmeticCoderBase
.
MASK
)
|
1
# While the second highest bit of low is 1 and the second highest bit of high is 0
while
(
self
.
low
&
~
self
.
high
&
ArithmeticCoderBase
.
SECOND_MASK
)
!=
0
:
self
.
underflow
()
self
.
low
=
(
self
.
low
<<
1
)
&
(
ArithmeticCoderBase
.
MASK
>>
1
)
self
.
high
=
((
self
.
high
<<
1
)
&
(
ArithmeticCoderBase
.
MASK
>>
1
))
|
ArithmeticCoderBase
.
TOP_MASK
|
1
# Called to handle the situation when the top bit of 'low' and 'high' are equal.
def
shift
(
self
):
raise
NotImplementedError
()
# Called to handle the situation when low=01(...) and high=10(...).
def
underflow
(
self
):
raise
NotImplementedError
()
# Encodes symbols and writes to an arithmetic-coded bit stream.
class
ArithmeticEncoder
(
ArithmeticCoderBase
):
# Constructs an arithmetic coding encoder based on the given bit output stream.
def
__init__
(
self
,
bitout
):
super
(
ArithmeticEncoder
,
self
)
.
__init__
()
# The underlying bit output stream.
self
.
output
=
bitout
# Number of saved underflow bits. This value can grow without bound.
self
.
num_underflow
=
0
# Encodes the given symbol based on the given frequency table.
# This updates this arithmetic coder's state and may write out some bits.
def
write
(
self
,
freqs
,
symbol
):
if
not
isinstance
(
freqs
,
CheckedFrequencyTable
):
freqs
=
CheckedFrequencyTable
(
freqs
)
self
.
update
(
freqs
,
symbol
)
# Terminates the arithmetic coding by flushing any buffered bits, so that the output can be decoded properly.
# It is important that this method must be called at the end of the each encoding process.
# Note that this method merely writes data to the underlying output stream but does not close it.
def
finish
(
self
):
self
.
output
.
write
(
1
)
def
shift
(
self
):
bit
=
self
.
low
>>
(
ArithmeticCoderBase
.
STATE_SIZE
-
1
)
self
.
output
.
write
(
bit
)
# Write out the saved underflow bits
for
i
in
range
(
self
.
num_underflow
):
self
.
output
.
write
(
bit
^
1
)
self
.
num_underflow
=
0
def
underflow
(
self
):
self
.
num_underflow
+=
1
# Reads from an arithmetic-coded bit stream and decodes symbols.
class
ArithmeticDecoder
(
ArithmeticCoderBase
):
# Constructs an arithmetic coding decoder based on the
# given bit input stream, and fills the code bits.
def
__init__
(
self
,
bitin
):
super
(
ArithmeticDecoder
,
self
)
.
__init__
()
# The underlying bit input stream.
self
.
input
=
bitin
# The current raw code bits being buffered, which is always in the range [low, high].
self
.
code
=
0
for
i
in
range
(
ArithmeticCoderBase
.
STATE_SIZE
):
self
.
code
=
self
.
code
<<
1
|
self
.
read_code_bit
()
# Decodes the next symbol based on the given frequency table and returns it.
# Also updates this arithmetic coder's state and may read in some bits.
def
read
(
self
,
freqs
):
if
not
isinstance
(
freqs
,
CheckedFrequencyTable
):
freqs
=
CheckedFrequencyTable
(
freqs
)
# Translate from coding range scale to frequency table scale
total
=
freqs
.
get_total
()
if
total
>
ArithmeticCoderBase
.
MAX_TOTAL
:
raise
ValueError
(
"Cannot decode symbol because total is too large"
)
range
=
self
.
high
-
self
.
low
+
1
offset
=
self
.
code
-
self
.
low
value
=
((
offset
+
1
)
*
total
-
1
)
//
range
assert
value
*
range
//
total
<=
offset
assert
0
<=
value
<
total
# A kind of binary search. Find highest symbol such that freqs.get_low(symbol) <= value.
start
=
0
end
=
freqs
.
get_symbol_limit
()
while
end
-
start
>
1
:
middle
=
(
start
+
end
)
>>
1
if
freqs
.
get_low
(
middle
)
>
value
:
end
=
middle
else
:
start
=
middle
assert
start
+
1
==
end
symbol
=
start
assert
freqs
.
get_low
(
symbol
)
*
range
//
total
<=
offset
<
freqs
.
get_high
(
symbol
)
*
range
//
total
self
.
update
(
freqs
,
symbol
)
if
not
(
self
.
low
<=
self
.
code
<=
self
.
high
):
raise
AssertionError
(
"Code out of range"
)
return
symbol
def
shift
(
self
):
self
.
code
=
((
self
.
code
<<
1
)
&
ArithmeticCoderBase
.
MASK
)
|
self
.
read_code_bit
()
def
underflow
(
self
):
self
.
code
=
(
self
.
code
&
ArithmeticCoderBase
.
TOP_MASK
)
|
((
self
.
code
<<
1
)
&
(
ArithmeticCoderBase
.
MASK
>>
1
))
|
self
.
read_code_bit
()
# Returns the next bit (0 or 1) from the input stream. The end
# of stream is treated as an infinite number of trailing zeros.
def
read_code_bit
(
self
):
temp
=
self
.
input
.
read
()
if
temp
==
-
1
:
temp
=
0
return
temp
# ---- Frequency table classes ----
# A table of symbol frequencies. The table holds data for symbols numbered from 0
# to get_symbol_limit()-1. Each symbol has a frequency, which is a non-negative integer.
# Frequency table objects are primarily used for getting cumulative symbol
# frequencies. These objects can be mutable depending on the implementation.
class
FrequencyTable
(
object
):
# Returns the number of symbols in this frequency table, which is a positive number.
def
get_symbol_limit
(
self
):
raise
NotImplementedError
()
# Returns the frequency of the given symbol. The returned value is at least 0.
def
get
(
self
,
symbol
):
raise
NotImplementedError
()
# Sets the frequency of the given symbol to the given value.
# The frequency value must be at least 0.
def
set
(
self
,
symbol
,
freq
):
raise
NotImplementedError
()
# Increments the frequency of the given symbol.
def
increment
(
self
,
symbol
):
raise
NotImplementedError
()
# Returns the total of all symbol frequencies. The returned value is at
# least 0 and is always equal to get_high(get_symbol_limit() - 1).
def
get_total
(
self
):
raise
NotImplementedError
()
# Returns the sum of the frequencies of all the symbols strictly
# below the given symbol value. The returned value is at least 0.
def
get_low
(
self
,
symbol
):
raise
NotImplementedError
()
# Returns the sum of the frequencies of the given symbol
# and all the symbols below. The returned value is at least 0.
def
get_high
(
self
,
symbol
):
raise
NotImplementedError
()
# An immutable frequency table where every symbol has the same frequency of 1.
# Useful as a fallback model when no statistics are available.
class
FlatFrequencyTable
(
FrequencyTable
):
# Constructs a flat frequency table with the given number of symbols.
def
__init__
(
self
,
numsyms
):
if
numsyms
<
1
:
raise
ValueError
(
"Number of symbols must be positive"
)
self
.
numsymbols
=
numsyms
# Total number of symbols, which is at least 1
# Returns the number of symbols in this table, which is at least 1.
def
get_symbol_limit
(
self
):
return
self
.
numsymbols
# Returns the frequency of the given symbol, which is always 1.
def
get
(
self
,
symbol
):
self
.
_check_symbol
(
symbol
)
return
1
# Returns the total of all symbol frequencies, which is
# always equal to the number of symbols in this table.
def
get_total
(
self
):
return
self
.
numsymbols
# Returns the sum of the frequencies of all the symbols strictly below
# the given symbol value. The returned value is equal to 'symbol'.
def
get_low
(
self
,
symbol
):
self
.
_check_symbol
(
symbol
)
return
symbol
# Returns the sum of the frequencies of the given symbol and all
# the symbols below. The returned value is equal to 'symbol' + 1.
def
get_high
(
self
,
symbol
):
self
.
_check_symbol
(
symbol
)
return
symbol
+
1
# Returns silently if 0 <= symbol < numsymbols, otherwise raises an exception.
def
_check_symbol
(
self
,
symbol
):
if
0
<=
symbol
<
self
.
numsymbols
:
return
else
:
raise
ValueError
(
"Symbol out of range"
)
# Returns a string representation of this frequency table. The format is subject to change.
def
__str__
(
self
):
return
"FlatFrequencyTable={}"
.
format
(
self
.
numsymbols
)
# Unsupported operation, because this frequency table is immutable.
def
set
(
self
,
symbol
,
freq
):
raise
NotImplementedError
()
# Unsupported operation, because this frequency table is immutable.
def
increment
(
self
,
symbol
):
raise
NotImplementedError
()
# A mutable table of symbol frequencies. The number of symbols cannot be changed
# after construction. The current algorithm for calculating cumulative frequencies
# takes linear time, but there exist faster algorithms such as Fenwick trees.
class
SimpleFrequencyTable
(
FrequencyTable
):
# Constructs a simple frequency table in one of two ways:
# - SimpleFrequencyTable(sequence):
# Builds a frequency table from the given sequence of symbol frequencies.
# There must be at least 1 symbol, and no symbol has a negative frequency.
# - SimpleFrequencyTable(freqtable):
# Builds a frequency table by copying the given frequency table.
def
__init__
(
self
,
freqs
):
if
isinstance
(
freqs
,
FrequencyTable
):
numsym
=
freqs
.
get_symbol_limit
()
self
.
frequencies
=
[
freqs
.
get
(
i
)
for
i
in
range
(
numsym
)]
else
:
# Assume it is a sequence type
self
.
frequencies
=
list
(
freqs
)
# Make copy
# 'frequencies' is a list of the frequency for each symbol.
# Its length is at least 1, and each element is non-negative.
if
len
(
self
.
frequencies
)
<
1
:
raise
ValueError
(
"At least 1 symbol needed"
)
for
freq
in
self
.
frequencies
:
if
freq
<
0
:
raise
ValueError
(
"Negative frequency"
)
# Always equal to the sum of 'frequencies'
self
.
total
=
sum
(
self
.
frequencies
)
# cumulative[i] is the sum of 'frequencies' from 0 (inclusive) to i (exclusive).
# Initialized lazily. When it is not None, the data is valid.
self
.
cumulative
=
None
# Returns the number of symbols in this frequency table, which is at least 1.
def
get_symbol_limit
(
self
):
return
len
(
self
.
frequencies
)
# Returns the frequency of the given symbol. The returned value is at least 0.
def
get
(
self
,
symbol
):
self
.
_check_symbol
(
symbol
)
return
self
.
frequencies
[
symbol
]
# Sets the frequency of the given symbol to the given value. The frequency value
# must be at least 0. If an exception is raised, then the state is left unchanged.
def
set
(
self
,
symbol
,
freq
):
self
.
_check_symbol
(
symbol
)
if
freq
<
0
:
raise
ValueError
(
"Negative frequency"
)
temp
=
self
.
total
-
self
.
frequencies
[
symbol
]
assert
temp
>=
0
self
.
total
=
temp
+
freq
self
.
frequencies
[
symbol
]
=
freq
self
.
cumulative
=
None
# Increments the frequency of the given symbol.
def
increment
(
self
,
symbol
):
self
.
_check_symbol
(
symbol
)
self
.
total
+=
1
self
.
frequencies
[
symbol
]
+=
1
self
.
cumulative
=
None
# Returns the total of all symbol frequencies. The returned value is at
# least 0 and is always equal to get_high(get_symbol_limit() - 1).
def
get_total
(
self
):
return
self
.
total
# Returns the sum of the frequencies of all the symbols strictly
# below the given symbol value. The returned value is at least 0.
def
get_low
(
self
,
symbol
):
self
.
_check_symbol
(
symbol
)
if
self
.
cumulative
is
None
:
self
.
_init_cumulative
()
return
self
.
cumulative
[
symbol
]
# Returns the sum of the frequencies of the given symbol
# and all the symbols below. The returned value is at least 0.
def
get_high
(
self
,
symbol
):
self
.
_check_symbol
(
symbol
)
if
self
.
cumulative
is
None
:
self
.
_init_cumulative
()
return
self
.
cumulative
[
symbol
+
1
]
# Recomputes the array of cumulative symbol frequencies.
def
_init_cumulative
(
self
):
cumul
=
[
0
]
sum
=
0
for
freq
in
self
.
frequencies
:
sum
+=
freq
cumul
.
append
(
sum
)
assert
sum
==
self
.
total
self
.
cumulative
=
cumul
# Returns silently if 0 <= symbol < len(frequencies), otherwise raises an exception.
def
_check_symbol
(
self
,
symbol
):
if
0
<=
symbol
<
len
(
self
.
frequencies
):
return
else
:
raise
ValueError
(
"Symbol out of range"
)
# Returns a string representation of this frequency table,
# useful for debugging only, and the format is subject to change.
def
__str__
(
self
):
result
=
""
for
(
i
,
freq
)
in
enumerate
(
self
.
frequencies
):
result
+=
"{}
\t
{}
\n
"
.
format
(
i
,
freq
)
return
result
# A wrapper that checks the preconditions (arguments) and postconditions (return value) of all
# the frequency table methods. Useful for finding faults in a frequency table implementation.
class
CheckedFrequencyTable
(
FrequencyTable
):
def
__init__
(
self
,
freqtab
):
# The underlying frequency table that holds the data
self
.
freqtable
=
freqtab
def
get_symbol_limit
(
self
):
result
=
self
.
freqtable
.
get_symbol_limit
()
if
result
<=
0
:
raise
AssertionError
(
"Non-positive symbol limit"
)
return
result
def
get
(
self
,
symbol
):
result
=
self
.
freqtable
.
get
(
symbol
)
if
not
self
.
_is_symbol_in_range
(
symbol
):
raise
AssertionError
(
"ValueError expected"
)
if
result
<
0
:
raise
AssertionError
(
"Negative symbol frequency"
)
return
result
def
get_total
(
self
):
result
=
self
.
freqtable
.
get_total
()
if
result
<
0
:
raise
AssertionError
(
"Negative total frequency"
)
return
result
def
get_low
(
self
,
symbol
):
if
self
.
_is_symbol_in_range
(
symbol
):
low
=
self
.
freqtable
.
get_low
(
symbol
)
high
=
self
.
freqtable
.
get_high
(
symbol
)
if
not
(
0
<=
low
<=
high
<=
self
.
freqtable
.
get_total
()):
raise
AssertionError
(
"Symbol low cumulative frequency out of range"
)
return
low
else
:
self
.
freqtable
.
get_low
(
symbol
)
raise
AssertionError
(
"ValueError expected"
)
def
get_high
(
self
,
symbol
):
if
self
.
_is_symbol_in_range
(
symbol
):
low
=
self
.
freqtable
.
get_low
(
symbol
)
high
=
self
.
freqtable
.
get_high
(
symbol
)
if
not
(
0
<=
low
<=
high
<=
self
.
freqtable
.
get_total
()):
raise
AssertionError
(
"Symbol high cumulative frequency out of range"
)
return
high
else
:
self
.
freqtable
.
get_high
(
symbol
)
raise
AssertionError
(
"ValueError expected"
)
def
__str__
(
self
):
return
"CheckFrequencyTable ("
+
str
(
self
.
freqtable
)
+
")"
def
set
(
self
,
symbol
,
freq
):
self
.
freqtable
.
set
(
symbol
,
freq
)
if
not
self
.
_is_symbol_in_range
(
symbol
)
or
freq
<
0
:
raise
AssertionError
(
"ValueError expected"
)
def
increment
(
self
,
symbol
):
self
.
freqtable
.
increment
(
symbol
)
if
not
self
.
_is_symbol_in_range
(
symbol
):
raise
AssertionError
(
"ValueError expected"
)
def
_is_symbol_in_range
(
self
,
symbol
):
return
0
<=
symbol
<
self
.
get_symbol_limit
()
# ---- Bit-oriented I/O streams ----
# A stream of bits that can be read. Because they come from an underlying byte stream,
# the total number of bits is always a multiple of 8. The bits are read in big endian.
class
BitInputStream
(
object
):
# Constructs a bit input stream based on the given byte input stream.
def
__init__
(
self
,
inp
):
# The underlying byte stream to read from
self
.
input
=
inp
# Either in the range [0x00, 0xFF] if bits are available, or -1 if end of stream is reached
self
.
currentbyte
=
0
# Number of remaining bits in the current byte, always between 0 and 7 (inclusive)
self
.
numbitsremaining
=
0
# Reads a bit from this stream. Returns 0 or 1 if a bit is available, or -1 if
# the end of stream is reached. The end of stream always occurs on a byte boundary.
def
read
(
self
):
if
self
.
currentbyte
==
-
1
:
return
-
1
if
self
.
numbitsremaining
==
0
:
temp
=
self
.
input
.
read
(
1
)
if
len
(
temp
)
==
0
:
self
.
currentbyte
=
-
1
return
-
1
self
.
currentbyte
=
temp
[
0
]
if
python3
else
ord
(
temp
)
self
.
numbitsremaining
=
8
assert
self
.
numbitsremaining
>
0
self
.
numbitsremaining
-=
1
return
(
self
.
currentbyte
>>
self
.
numbitsremaining
)
&
1
# Reads a bit from this stream. Returns 0 or 1 if a bit is available, or raises an EOFError
# if the end of stream is reached. The end of stream always occurs on a byte boundary.
def
read_no_eof
(
self
):
result
=
self
.
read
()
if
result
!=
-
1
:
return
result
else
:
raise
EOFError
()
# Closes this stream and the underlying input stream.
def
close
(
self
):
self
.
input
.
close
()
self
.
currentbyte
=
-
1
self
.
numbitsremaining
=
0
# A stream where bits can be written to. Because they are written to an underlying
# byte stream, the end of the stream is padded with 0's up to a multiple of 8 bits.
# The bits are written in big endian.
class
BitOutputStream
(
object
):
# Constructs a bit output stream based on the given byte output stream.
def
__init__
(
self
,
out
):
self
.
output
=
out
# The underlying byte stream to write to
self
.
currentbyte
=
0
# The accumulated bits for the current byte, always in the range [0x00, 0xFF]
self
.
numbitsfilled
=
0
# Number of accumulated bits in the current byte, always between 0 and 7 (inclusive)
# Writes a bit to the stream. The given bit must be 0 or 1.
def
write
(
self
,
b
):
if
b
not
in
(
0
,
1
):
raise
ValueError
(
"Argument must be 0 or 1"
)
self
.
currentbyte
=
(
self
.
currentbyte
<<
1
)
|
b
self
.
numbitsfilled
+=
1
if
self
.
numbitsfilled
==
8
:
towrite
=
bytes
((
self
.
currentbyte
,))
if
python3
else
chr
(
self
.
currentbyte
)
self
.
output
.
write
(
towrite
)
self
.
currentbyte
=
0
self
.
numbitsfilled
=
0
# Closes this stream and the underlying output stream. If called when this
# bit stream is not at a byte boundary, then the minimum number of "0" bits
# (between 0 and 7 of them) are written as padding to reach the next byte boundary.
def
close
(
self
):
while
self
.
numbitsfilled
!=
0
:
self
.
write
(
0
)
self
.
output
.
close
()
prediction_MSE_Scout.ipynb
View file @
cbba7336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"cells": [
"cells": [
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 7
6
,
"execution_count": 7
2
,
"id": "dbef8759",
"id": "dbef8759",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
...
@@ -16,14 +16,16 @@
...
@@ -16,14 +16,16 @@
"from scipy.optimize import minimize\n",
"from scipy.optimize import minimize\n",
"from time import time\n",
"from time import time\n",
"from numpy import linalg as la\n",
"from numpy import linalg as la\n",
"from scipy.stats import gaussian_kde\n",
"from scipy.stats import gaussian_kde
, entropy
\n",
"import seaborn as sns\n",
"import seaborn as sns\n",
"import pywt"
"import pywt\n",
"import math\n",
"#import cv2"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
2
,
"execution_count":
15
,
"id": "b7a550e0",
"id": "b7a550e0",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
...
@@ -78,7 +80,7 @@
...
@@ -78,7 +80,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
3
,
"execution_count":
16
,
"id": "9ed20f84",
"id": "9ed20f84",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
...
@@ -106,6 +108,7 @@
...
@@ -106,6 +108,7 @@
" y = np.vstack((y0,y1,y2))\n",
" y = np.vstack((y0,y1,y2))\n",
" # use numpy solver to solve the system of equations all at once\n",
" # use numpy solver to solve the system of equations all at once\n",
" predict = np.linalg.solve(A,y)[-1]\n",
" predict = np.linalg.solve(A,y)[-1]\n",
" #predict = []\n",
" # flatten the neighbor pixlels and stack them together\n",
" # flatten the neighbor pixlels and stack them together\n",
" z0 = np.ravel(z0)\n",
" z0 = np.ravel(z0)\n",
" z1 = np.ravel(z1)\n",
" z1 = np.ravel(z1)\n",
...
@@ -114,6 +117,15 @@
...
@@ -114,6 +117,15 @@
" neighbor = np.vstack((z0,z1,z2,z3)).T\n",
" neighbor = np.vstack((z0,z1,z2,z3)).T\n",
" # calculate the difference\n",
" # calculate the difference\n",
" diff = np.max(neighbor,axis = 1) - np.min(neighbor, axis=1)\n",
" diff = np.max(neighbor,axis = 1) - np.min(neighbor, axis=1)\n",
" \n",
" \"\"\"for i in range(len(neighbor)):\n",
" if neighbor[i][0] >= max(neighbor[i][3], neighbor[i][1]):\n",
" predict.append(min(neighbor[i][3], neighbor[i][1]))\n",
" elif neighbor[i][0] < min(neighbor[i][3], neighbor[i][1]):\n",
" predict.append(max(neighbor[i][3], neighbor[i][1]))\n",
" else:\n",
" predict.append(neighbor[i][3] + neighbor[i][1] - neighbor[i][0])\"\"\"\n",
" \n",
" # flatten the image to a vector\n",
" # flatten the image to a vector\n",
" image_ravel = np.ravel(image[1:-1,1:-1])\n",
" image_ravel = np.ravel(image[1:-1,1:-1])\n",
" return image_ravel, predict, diff, image"
" return image_ravel, predict, diff, image"
...
@@ -121,14 +133,14 @@
...
@@ -121,14 +133,14 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
4
,
"execution_count":
17
,
"id": "8e3ef654",
"id": "8e3ef654",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
"scenes = file_extractor()\n",
"scenes = file_extractor()\n",
"images = image_extractor(scenes)\n",
"images = image_extractor(scenes)\n",
"num_images = im_distribution(images, \"_
9
\")\n",
"num_images = im_distribution(images, \"_
1
\")\n",
"error_mean = []\n",
"error_mean = []\n",
"error_mean1 = []\n",
"error_mean1 = []\n",
"diff_mean = []\n",
"diff_mean = []\n",
...
@@ -156,7 +168,7 @@
...
@@ -156,7 +168,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
5
,
"execution_count":
18
,
"id": "fa65dcd6",
"id": "fa65dcd6",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
...
@@ -164,15 +176,15 @@
...
@@ -164,15 +176,15 @@
"name": "stdout",
"name": "stdout",
"output_type": "stream",
"output_type": "stream",
"text": [
"text": [
"Average Error
First and Second Added: 20.017164930235474
\n",
"Average Error
: 19.44221679267325
\n",
"Standard Deviaiton of Mean Errors: 0.1
6101183692475135
\n",
"Standard Deviaiton of Mean Errors: 0.1
7734010606906342
\n",
"Average Difference: 5
3.67864842645522
6\n",
"Average Difference: 5
1.9543015090048
6\n",
"Average Time per Image for First: 0.
1089103221893310
5\n"
"Average Time per Image for First: 0.
0491750836372375
5\n"
]
]
}
}
],
],
"source": [
"source": [
"print(f\"Average Error
First and Second Added
: {np.mean(error_mean)}\")\n",
"print(f\"Average Error: {np.mean(error_mean)}\")\n",
"print(f\"Standard Deviaiton of Mean Errors: {np.sqrt(np.var(error_mean))}\")\n",
"print(f\"Standard Deviaiton of Mean Errors: {np.sqrt(np.var(error_mean))}\")\n",
"print(f\"Average Difference: {np.mean(diff_mean)}\")\n",
"print(f\"Average Difference: {np.mean(diff_mean)}\")\n",
"print(f\"Average Time per Image for First: {np.mean(times)}\")"
"print(f\"Average Time per Image for First: {np.mean(times)}\")"
...
@@ -180,7 +192,7 @@
...
@@ -180,7 +192,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
6
,
"execution_count":
19
,
"id": "4c05b947",
"id": "4c05b947",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
...
@@ -190,13 +202,13 @@
...
@@ -190,13 +202,13 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
7
,
"execution_count":
21
,
"id": "dda442ae",
"id": "dda442ae",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"data": {
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA
Y4AAAEGCAYAAABy53LJAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAnxklEQVR4nO3de5hU9Z3n8fe3qm94QxFUBCKoLYI3MAgkajReQTODxkxGk6jjZGRMJBMnmd0l2dmMszvJ42YncZKJl2jiRncSL5MYg5FIkIh4Q0GjCCIBuQjSykUiBqS7q+q7f5zTbVFU01VFnTp1+byep56qc6v6nnqK/nB+5/x+x9wdERGRQiXiLkBERGqLgkNERIqi4BARkaIoOEREpCgKDhERKUpT3AVUwuDBg33kyJFxlyEiUlNeeOGFLe4+JHd+QwTHyJEjWbx4cdxliIjUFDNbl2++mqpERKQoCg4RESmKgkNERIqi4BARkaIoOEREpCgKDhERKYqCQ0REiqLgKBcNTy8iDULBUQ7vrIYfnAb3fw5SXXFXIyISKQXHvtq2Fn58Ibz3Fix/GH5+DWTScVclIhIZBce+enUW7NgEn58DF34LXvs1LHkg7qpERCLTEGNVldvImY/0vv6npqe4LDmAk29ei/EhHm4ZyYEPfoNz79uPVJ6vd+1NF1eyVBGRstMRxz460rbS4YcC4CT4bupTHJXYxGXJJ2OuTEQkGgqOfTQ0KzgAfpcZz+8zx/Klpl/SQneMlYmIRCPS4DCzKWa2wsxWmdnMPMvNzL4fLl9iZqeG89vM7Hkze9nMlpnZP2dtM8jM5prZyvD5kCj3oT9DbSsbfVDWHOO7qU8x3Lbw6eT8mKoSEYlOZMFhZkngFmAqMBa4wszG5qw2FWgPH9OB28L5ncA57n4KMA6YYmaTw2UzgXnu3g7MC6dj0UI3Q2z7bkccAE9mTuL5zGhmND1EK7o8V0TqS5RHHBOBVe6+2t27gPuAaTnrTAPu8cBC4GAzGxpO/ylcp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0YTpq6WqG9/QyPk/lVTK10XDX3TRNZX+mcohvQKW/J/8TWB0RXyvZVb3zlPfIg6H+IOnI2gI8kT6Wluz7EsnIiWZKRigBTcAz6b5vkM5oMJQfwB+T/EV0CNgB3OPz1Os5u5RkpM56ksuGuceU47m4A9gGHEl/jq4FJgL3A+vS5wm9/UwN5QfwNpJLVk+V/H90aTXPk6deMTOzqvAlLzMzqwonFDMzqwonFDMzqwonFDMzqwonFDMzqwonFDMzqwonFLMcSKrr6X03dSTJv7NWs/zDaZYBSR+X9LCkJyT9i6Q6Sfsl/Y2kh4C3lHn/55KeSR+fSY/TkK5f8c/AY7x+KgyzmuKEYlZlks4EPgpcFBFvBDqAq4ATSNbruCAiflv6HngF+ARwAXAh8ElJ56WHnAfcHhHnRcTmgf02ZpXz5JBm1fdu4E3AI+lMrseTTLjXQTIxX6fS928DfhgRLwNIuht4O8l8SpsjYsXAhG7Wf04oZtUn4NsR8Vev2yh9LiI6SjYdLHnf0/LFL1c7QLMs+JKXWfXdD3xY0hR4dc3uWb3UeQD4gKQxkk4gmSzzNxnHaVZVbqGYVVlEPCvpy8DP01FZR4Dre6nzmKRv8dr04P8aEY+nK+uZDQqebdjMzKrCl7zMzKwqnFDMzKwqnFDMzKwqnFDMzKwqnFDMzKwqnFDMzKwqnFDMzKwq/n9a38AEPPLXOgAAAABJRU5ErkJggg==
\n",
"text/plain": [
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
"<Figure size 432x288 with 1 Axes>"
]
]
...
@@ -208,7 +220,7 @@
...
@@ -208,7 +220,7 @@
}
}
],
],
"source": [
"source": [
"new_error = n
p.abs(new_image-new_pred)
\n",
"new_error = n
ew_image-new_pred
\n",
"plt.hist(new_error, bins=20, density=True)\n",
"plt.hist(new_error, bins=20, density=True)\n",
"sns.kdeplot(new_error)\n",
"sns.kdeplot(new_error)\n",
"plt.xlabel(\"error\")\n",
"plt.xlabel(\"error\")\n",
...
@@ -217,58 +229,63 @@
...
@@ -217,58 +229,63 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
8
,
"execution_count":
41
,
"id": "58da6063",
"id": "58da6063",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"data": {
"name": "stdout",
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAZsAAAEICAYAAACJalkVAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAAsTAAALEwEAmpwYAAA3Y0lEQVR4nO3deZxcVZn/8c+3qjsr2TrpLCSELIQlCARoQhBQQZYEkICKEhAQcQIK4zY/Jag4bjMDOjojIxJBEaJgQBAIkhg2IyAEEiRkXzohJJ21Ozudtbue3x/3dlLpVFff6u7qqnQ979erXlV17jn3nnsp8vQ599xzZGY455xz2RTLdQWcc861fR5snHPOZZ0HG+ecc1nnwcY551zWebBxzjmXdR5snHPOZV1Wg42k0ZKWSCqXNCHFdkm6J9w+V9JpjZWV9FNJi8P8T0nqnrTtjjD/EkkXJ6WfLmleuO0eScriaTvnnKtH2XrORlIcWApcCFQAs4BxZrYwKc8lwL8ClwBnAr8wszPTlZV0EfCymdVIuhvAzG6XNBz4IzASOBJ4ETjWzGolvQV8FZgJTAXuMbNp6erfq1cvGzRoUAtdDeeca/t69erF9OnTp5vZ6PrbirJ43JFAuZmtAJA0GRgLLEzKMxaYZEHEmympu6R+wKCGyprZ80nlZwKfTtrXZDPbA7wnqRwYKWkl0NXM3gj3NQm4AkgbbAYNGsTs2bObeu7OOVeQJPVKlZ7NbrT+wOqk7xVhWpQ8UcoCfIEDQSPdvioi7Ms551yWZDPYpLovUr/PrqE8jZaV9B2gBnikuftK2ud4SbMlza6srEyVxTnnXBNkM9hUAEclfR8ArI2YJ21ZSTcAlwHX2oGbTun2NaCRegBgZvebWZmZlZWWlqY9Oeecc9FlM9jMAoZJGiypHXA1MKVeninA9eGotFHANjNbl66spNHA7cDlZraz3r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TDDH1T0Ec1OdZ2bnNbLf14BRFkyuOBn4VtQKhVOWDCF4OhwAM9tGMHHjQ5KuBnqY2QOSLiKY3mQkMAI4XdJHGtq3BXNwvQWMDpPq1kIx4DtmVgacDHxU0slR6wz8AvgfMzuD4In432RQ1rVhRbmugHN5Yhzwv+HnyeH3fwIXEEw7UwNgZplOcjgAeEzBmiTtgPcilPmspHMIpka62cw2K2mJEjN7QdJVwL3AKWHyReHrnfD7EQTB55U0x6nrSnsmfP9CmP4ZSeMJ/n3oR7Dg19wI9Ybgeg1Pqm9XSV0sWM/FFTAPNq7gSeoJnA98SJIBccAkfYtgCvcoczol5+mQ9Pn/gJ+b2RRJHwO+H2Ffj5nZbQ1tlBQjWDl2F1BCMGefgP8ys19H2H+dp4Gfh624jmb2z3BSzP8HnGFmW8LusQ4pyjZ0vjHgLDPblUE9XAHwbjTngtlyJ5nZ0WY2yIJ1Rt4jmEjxeeCWcPp2JJWEZXYQLPVbZ4OkE8JAcGVSejdgTfj5BlrG1wlWfRwHPKhgGvvpwBfCe09I6i+pd7qdmNkHBMucP8iBgQFdgWpgW3h/aUwDxRs63+c5sD4LkkZkdmqurfJg41zwj/ZT9dKeBK4huOewCpgr6d0wDeB+YFrdAAFgAvAX4GWCRbDqfB/4k6RXgarmVlTSscAXgX8zs1cJusm+a2bPE6yN8oakeQQDALo0vKf9/kjQFTcZwMzeJeiKW0AQhP7RQLmGzvcrQFk4SGEhcEtmZ+jaKp/12TnnXNZ5y8Y551zWebBxzjmXdR5snHPOZZ0HG+ecc1nnwcY551zWebBxzjmXdR5snHPOZZ0HG+ecc1n3/wE8vk1auHCPQAAAAABJRU5ErkJggg==\n",
"output_type": "stream",
"text/plain": [
"text": [
"<Figure size 432x288 with 1 Axes>"
"Std Deviation of E: 26.627504708827136\n",
"Normal bits: 15\n",
"Encoded Bits: 6.677845333316752\n"
]
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
}
],
],
"source": [
"source": [
"plt.hist(new_image, bins=25, density=True)\n",
"image = Image.open(images[0]) #Open the image and read it as an Image object\n",
"sns.kdeplot(new_image)\n",
"image = np.array(image)[1:,:] #Convert to an array, leaving out the first row because the first row is just housekeeping data\n",
"plt.xlabel(\"Actual Pixel Value\")\n",
"image = image.astype(np.int64)\n",
"plt.show()"
"print(\"Std Deviation of E: \", np.std(new_error))\n",
"print(\"Normal bits: \", int(image[0][0]).bit_length())\n",
"H = np.log2(np.std(new_error)) + 1.943\n",
"print(\"Encoded Bits: \", H)"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 79,
"execution_count": 47,
"id": "2562feeb",
"id": "ec4db902",
"metadata": {
"metadata": {},
"scrolled": false
},
"outputs": [
"outputs": [
{
{
"name": "stdout",
"name": "stdout",
"output_type": "stream",
"output_type": "stream",
"text": [
"text": [
"(512, 640)\n",
"8192\n"
"1310832\n",
"9\n"
]
]
}
}
],
],
"source": []
},
{
"cell_type": "code",
"execution_count": 9,
"id": "2562feeb",
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"source": [
"f_r = no_ravel[0]\n",
"pred = new_pred.reshape((510,638))\n",
"print(no_ravel.shape)\n",
"real_pred = no_ravel.copy()\n",
"print(sys.getsizeof(no_ravel))\n",
"real_pred[1:-1, 1:-1] = pred"
"print((256).bit_length())"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
99
,
"execution_count":
10
,
"id": "470cc137",
"id": "470cc137",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
...
@@ -285,7 +302,7 @@
...
@@ -285,7 +302,7 @@
"'print(decompress)\\nprint(np.mean(np.abs(decompress-no_ravel)))'"
"'print(decompress)\\nprint(np.mean(np.abs(decompress-no_ravel)))'"
]
]
},
},
"execution_count":
99
,
"execution_count":
10
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -301,112 +318,201 @@
...
@@ -301,112 +318,201 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
59
,
"execution_count":
null
,
"id": "3292b395",
"id": "3292b395",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [],
"source": []
},
{
{
"name": "stdout",
"cell_type": "code",
"output_type": "stream",
"execution_count": null,
"text": [
"id": "f9687830",
"[72, 101, 108, 108, 111, 32, 109, 121, 32, 110, 97, 109, 101, 32, 105, 115, 32, 83, 99, 111, 117, 116]\n",
"metadata": {},
"256\n",
"outputs": [],
"71\n"
"source": []
},
{
"cell_type": "code",
"execution_count": 13,
"id": "e98eed4b",
"metadata": {},
"outputs": [],
"source": [
"f = open(\"test.craw\", \"wb\")\n",
"f.write(real_pred.tobytes())\n",
"f.close()"
]
]
}
},
],
{
"cell_type": "code",
"execution_count": 12,
"id": "b7e88aab",
"metadata": {},
"outputs": [],
"source": [
"source": [
"def compress(uncompressed):\n",
"# Apply arithmetic coding to compress it\n",
" \"\"\"Compress a string to a list of output symbols.\"\"\"\n",
"import adaptive_arithmetic_compress\n",
" \n",
"adaptive_arithmetic_compress.main([\"test.craw\", \"test.tiff\"])"
" # Build the dictionary.\n",
" dict_size = 256\n",
" dictionary = dict((chr(i), i) for i in range(dict_size))\n",
" # in Python 3: dictionary = {chr(i): i for i in range(dict_size)}\n",
"\n",
" w = \"\"\n",
" result = []\n",
" for c in uncompressed:\n",
" wc = w + c\n",
" if wc in dictionary:\n",
" w = wc\n",
" else:\n",
" result.append(dictionary[w])\n",
" # Add wc to the dictionary.\n",
" dictionary[wc] = dict_size\n",
" dict_size += 1\n",
" w = c\n",
" \n",
" # Output the code for w.\n",
" if w:\n",
" result.append(dictionary[w])\n",
" return result\n",
"\n",
"store = compress(\"Hello my name is Scout\")\n",
"print(store)\n",
"print(sys.getsizeof(store))\n",
"print(sys.getsizeof(\"Hello my name is Scout\"))"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1
0
1,
"execution_count": 11,
"id": "
f9687830
",
"id": "
7c8abaee
",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"ename": "ValueError",
"data": {
"evalue": "too many values to unpack (expected 2)",
"text/plain": [
"output_type": "error",
"'change = Image.open(\"test.tiff\")\\nchange = np.array(change)\\nprint(change.shape)'"
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mValueError\u001b[0m Traceback (most recent call last)",
"\u001b[1;32m~\\AppData\\Local\\Temp/ipykernel_22104/2202774112.py\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m 18\u001b[0m \u001b[0mtimes\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstop\u001b[0m\u001b[1;33m-\u001b[0m\u001b[0mstart\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 19\u001b[0m \u001b[1;32mreturn\u001b[0m \u001b[0mtimes\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 20\u001b[1;33m \u001b[0mti\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mwave_decompress\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcoef\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 21\u001b[0m \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mnp\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mmean\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mti\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
"\u001b[1;32m~\\AppData\\Local\\Temp/ipykernel_22104/2202774112.py\u001b[0m in \u001b[0;36mwave_decompress\u001b[1;34m(coeffs)\u001b[0m\n\u001b[0;32m 14\u001b[0m \u001b[1;32mfor\u001b[0m \u001b[0mi\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mrange\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mlen\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcoeffs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 15\u001b[0m \u001b[0mstart\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mtime\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 16\u001b[1;33m \u001b[0mdecompress\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mpywt\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0midwt2\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcoeffs\u001b[0m\u001b[1;33m[\u001b[0m\u001b[0mi\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;34m'bior1.3'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 17\u001b[0m \u001b[0mstop\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mtime\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 18\u001b[0m \u001b[0mtimes\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstop\u001b[0m\u001b[1;33m-\u001b[0m\u001b[0mstart\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
"\u001b[1;32m~\\anaconda3\\lib\\site-packages\\pywt\\_multidim.py\u001b[0m in \u001b[0;36midwt2\u001b[1;34m(coeffs, wavelet, mode, axes)\u001b[0m\n\u001b[0;32m 110\u001b[0m \"\"\"\n\u001b[0;32m 111\u001b[0m \u001b[1;31m# L -low-pass data, H - high-pass data\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 112\u001b[1;33m \u001b[0mLL\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;33m(\u001b[0m\u001b[0mHL\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mLH\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mHH\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mcoeffs\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 113\u001b[0m \u001b[0maxes\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mtuple\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0maxes\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 114\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0maxes\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;33m!=\u001b[0m \u001b[1;36m2\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
"\u001b[1;31mValueError\u001b[0m: too many values to unpack (expected 2)"
]
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
}
],
],
"source": [
"source": [
"def wavelet(num_images, i): \n",
"\"\"\"change = Image.open(\"test.tiff\")\n",
"change = np.array(change)\n",
"print(change.shape)\"\"\""
]
},
{
"cell_type": "code",
"execution_count": 114,
"id": "82c20d94",
"metadata": {},
"outputs": [],
"source": [
"def compress(inputFile):#, outputFile):\n",
" twoBytes = 256*256\n",
" # Read the input file into a numpy array of 8-bit values\n",
" #\n",
" # The img.shape is a 3-type with rows,columns,channels, where\n",
" # channels is the number of components in each pixel. The img.dtype\n",
" # is 'uint8', meaning that each component is an 8-bit unsigned\n",
" # integer.\n",
"\n",
"\n",
"
image = Image.open(num_images[i]) #Open the image and read it as an Image object
\n",
"
#img = netpbm.imread(inputFile).astype('uint8')
\n",
" im
age = np.array(im)[1:,:]
\n",
" im
g = Image.open(inputFile) #Open the image and read it as an Image object
\n",
"
coeffs = pywt.dwt2(image, 'bior1.3')
\n",
"
img = np.array(img)[1:,:] #Convert to an array, leaving out the first row because the first row is just housekeeping data
\n",
"
return coeffs
\n",
"
img = img.astype('uint8')
\n",
"\n",
"\n",
" \n",
"\n",
"\n",
"coef, t = wavelet(num_images,0)\n",
" # Compress the image\n",
" #\n",
" #\n",
" # Note that single-channel images will have a 'shape' with only two\n",
" # components: the y dimensions and the x dimension. So you will\n",
" # have to detect this and set the number of channels accordingly.\n",
" # Furthermore, single-channel images must be indexed as img[y,x]\n",
" # instead of img[y,x,1]. You'll need two pieces of similar code:\n",
" # one piece for the single-channel case and one piece for the\n",
" # multi-channel case.\n",
"\n",
"\n",
"def wave_decompress(coeffs):\n",
" #startTime = time.time()\n",
" times = []\n",
"\n",
" for i in range(len(coeffs)):\n",
" outputBytes = bytearray()\n",
" start = time()\n",
"\n",
" decompress = pywt.idwt2(coeffs[i], 'bior1.3')\n",
" # initialize dictionary\n",
" stop = time()\n",
" d = {}\n",
" times.append(stop-start)\n",
" counter = 256\n",
" return times\n",
" for i in range(-counter, counter):\n",
"ti = wave_decompress(coef)\n",
" d[str(i)] = i\n",
"print(np.mean(ti))"
" # Set Dictionary limit\n",
"\n",
" # Make a list to hold bytes\n",
" tempBytes = []\n",
" # A counter for the number of bytes\n",
" numBytes = 0\n",
" multichannel = False\n",
" \n",
" # for a single channel image\n",
" if (len(img.shape) == 2) :\n",
" multichannel = False\n",
" \n",
" # Go through whole image\n",
" for y in range(img.shape[0]):\n",
" for x in range(img.shape[1]):\n",
" # Initialize prediction to image value\n",
" prediction = img[y][x]\n",
" #\"\"\" \n",
" # Modify prediction to show the difference between prior pixels and current pixel\n",
" if(x != 0):\n",
" prediction = prediction - img[y][x-1]\n",
" elif(y != 0):\n",
" prediction = prediction - img[y-1][x]\n",
" else:\n",
" prediction = prediction - (img[y][x-1]/3 + img[y-1][x]/3 + img[y-1][x-1]/3)\n",
" #\"\"\"\n",
" # Add the predicted value to the bytestream\n",
" tempBytes.append(prediction)\n",
" numBytes += 1\n",
" # Using a string variable as it allows for concatenation\n",
" s = \"\"\n",
" # Set s to the first value of the bytestream \n",
" s = str(int(tempBytes[0]))\n",
" # Go through all bytes\n",
" for i in range(1, numBytes):\n",
" # Do LZW encoding\n",
" # If trying to add entry larger than max size of the dictionary reinitialize the dictionary\n",
" if(counter >= twoBytes):\n",
" counter = 256\n",
" d = {}\n",
" for i in range(-counter, counter):\n",
" d[str(i)] = i\n",
"\n",
" # Add the next byte to the current string. Uses a delimeter to distinguish numbers\n",
" w = s +\"|\"+str(int(tempBytes[i]))\n",
" # Checking if it has been seen before\n",
" if w in d:\n",
" s = w\n",
" else:\n",
" # Output bytes by splitting integer into two bytes, this allows for a larger dictionary\n",
" outputBytes.append((int(d[s]) >> 8) & 0xFF)\n",
" outputBytes.append(int(d[s]) & 0xFF)\n",
" # Add to dictionarry\n",
" d[w] = counter\n",
" counter += 1\n",
" s = str(int(tempBytes[i]))\n",
" # Check if the last byte was added or not \n",
" if s in d: \n",
" outputBytes.append((int(d[s]) >> 8) & 0xFF)\n",
" outputBytes.append(int(d[s]) & 0xFF) \n",
" return numBytes, outputBytes, tempBytes"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
null
,
"execution_count":
123
,
"id": "
e98eed4b
",
"id": "
9190b5a8
",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [
"source": []
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\calle\\AppData\\Local\\Temp/ipykernel_1700/265550185.py:56: RuntimeWarning: overflow encountered in ubyte_scalars\n",
" prediction = prediction - img[y][x-1]\n",
"C:\\Users\\calle\\AppData\\Local\\Temp/ipykernel_1700/265550185.py:58: RuntimeWarning: overflow encountered in ubyte_scalars\n",
" prediction = prediction - img[y-1][x]\n"
]
},
},
{
{
"cell_type": "code",
"name": "stdout",
"execution_count": null,
"output_type": "stream",
"id": "b7e88aab",
"text": [
"metadata": {},
"245\n"
"outputs": [],
]
"source": []
}
],
"source": [
"test = images[0]\n",
"comp, out, temp = compress(test)\n",
"print(out[19])"
]
}
}
],
],
"metadata": {
"metadata": {
...
...
test.craw
0 → 100644
View file @
cbba7336
File added
test.tiff
0 → 100644
View file @
cbba7336
635 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