Commit f9f43c1a authored by Nathaniel Callens's avatar Nathaniel Callens

updates-this needs to be updated with Kelly's changes as well

parent 2e28b2f4
......@@ -2,45 +2,12 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 134,
"id": "dbef8759",
"metadata": {
"id": "dbef8759"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Average Error: 19.44221679267325\n",
"Standard Deviaiton of Mean Errors: 0.17734010606906342\n",
"Average Difference: 51.95430150900486\n",
"Average Time per Image for First: 0.058679431676864624\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAZQAAAEGCAYAAABCa2PoAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAAsTAAALEwEAmpwYAAArGElEQVR4nO3de5xcZZ3v+8+3OhcIEHKHXDrpBDqByEViCyjqjBecgEgcLyOIL9gOW04U5mydcTSjHl+z58w+m+3McUZGhgzOZiujB2QUNW7jIOAFLwQId0LSSedGmtw6CSSEkEt3/c4fazUUneru6k6tXtXd3/frVa+qWut5Vv1qpTu/ftbzrOdRRGBmZnasCnkHYGZmQ4MTipmZVYUTipmZVYUTipmZVYUTipmZVcWIvAMYCJMmTYqGhoa8wzAzG1QeffTRXRExudLywyKhNDQ0sHLlyrzDMDMbVCRt7kt5X/IyM7OqcEIxM7OqcEIxM7OqyDShSFooqVlSi6QlZfZL0k3p/qckLSjZd5uknZKeKVPvz9LjrpL01Sy/g5mZVSazhCKpDrgZuASYD1wpaX6XYpcAjenjOuCWkn3fAhaWOe47gUXAORHxBuDvqx68mZn1WZYtlPOBlojYEBGHgTtJEkGpRcDtkVgBjJM0FSAiHgD2lDnup4AbI+JQWm5nZt/AzMwqlmVCmQ5sKXnfmm7ra5mu5gJvl/SQpF9LevMxR2pmZscsy/tQVGZb17nyKynT1QhgPHAh8GbgLklzoss8/JKuI7mM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y8DP01FZR4Dre6nzmKRv8dr04P8aEY+nK+uZDQqebdjMzKrCl7zMzKwqnFDMzKwqnFDMzKwqnFDMzKwqnFDMzKwqnFDMzKwqnFDMzKwq/n9a38AEPPLXOgAAAABJRU5ErkJggg==\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Std Deviation of E: 26.627504708827136\n",
"Normal bits: 15\n",
"Encoded Bits: 6.677845333316752\n",
"(258, 322)\n"
]
}
],
"outputs": [],
"source": [
"import numpy as np\n",
"from prediction_MSE_Scout import file_extractor, image_extractor, im_distribution\n",
......@@ -54,24 +21,48 @@
"from numpy import linalg as la\n",
"from scipy.stats import gaussian_kde\n",
"import seaborn as sns\n",
"import pywt\n",
"from collections import Counter"
"from collections import Counter\n",
"import pandas as pd\n",
"import scipy as sp"
]
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 126,
"id": "9ed20f84",
"metadata": {
"id": "9ed20f84"
},
"outputs": [],
"source": [
"def plot_hist(tiff_list, i=0):\n",
"def predict(tiff_list, i=0):\n",
" \"\"\"\n",
" This function is the leftovers from the first attempt to plot histograms.\n",
" As it stands it needs some work in order to function again. We will\n",
" fix this later. 1/25/22\n",
" This function predicts the pixel values based on a linear combination\n",
" of the MSE from the three pixels above it and the one to the left. It\n",
" uses a system of equations to fit the plane ax + by + c and takes c\n",
" as the prediction for the unknown pixel. It does this all at once\n",
" by constructing vectors and matrices of the surrounding pixels and solving each system simultaneously\n",
" so as not to iterate through each one.\n",
" \n",
" Parameters:\n",
" tiff_list: list, list of names of image file paths to access. These should be strings\n",
" in the form of a path to the image\n",
" \n",
" i: int, which index in the tiff_list of images we want to predict on\n",
" \n",
" Returns:\n",
" prediction: matrix (ndarray), the matrix of predicted values\n",
" for the image using the previous four piexels\n",
" \n",
" diff: matrix (ndarray), the difference between the highest and lowest valued surrounding four pixels\n",
" \n",
" image_int: matrix (ndarray), the original image, changed into integers\n",
" \n",
" error: matrix (ndarray), a matrix of errors, so each entry is the \n",
" difference between the integer predicted value and the actual value. Should\n",
" be all integers\n",
" \n",
" A: matrix (3,3 ndarray), the matrix used to solve the MSE system\n",
" \"\"\"\n",
" \n",
" image = tiff_list[i]\n",
......@@ -94,7 +85,7 @@
" \n",
" # use numpy solver to solve the system of equations all at once\n",
" #predict = np.linalg.solve(A,y)[-1]\n",
" predict = np.floor(np.linalg.solve(A,y)[-1]).astype(int)\n",
" prediction = np.floor(np.linalg.solve(A,y)[-1]).astype(int)\n",
" #predict = []\n",
" \n",
" # flatten the neighbor pixels and stack them together\n",
......@@ -112,11 +103,7 @@
" small_image = image_int[1:-1,1:-1]\n",
" \n",
" #Reshape the predictions to be a 2D array\n",
" predict = np.pad(predict.reshape(510,638), pad_width=1)\n",
" \"\"\"predict[0,:] = image[0,:]\n",
" predict[:,0] = image[:,0]\n",
" predict[:,-1] = image[:,-1]\n",
" predict[-1,:] = image[-1,:]\"\"\"\n",
" prediction = np.pad(prediction.reshape(510,638), pad_width=1)\n",
" \n",
" \n",
" #Calculate the error between the original image and our predictions\n",
......@@ -125,15 +112,15 @@
" #error = (image_int - predict).astype(int) #Experiment\n",
" \n",
" #this one works\n",
" error = image_int - predict\n",
" error = image_int - prediction\n",
"\n",
" \n",
" return predict, diff, image_int, error, A"
" return prediction, diff, image_int, error, A"
]
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 53,
"id": "ba2881d9",
"metadata": {},
"outputs": [],
......@@ -145,17 +132,17 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 54,
"id": "11e95c34",
"metadata": {},
"outputs": [],
"source": [
"predict, diff, im, err, A = plot_hist(images, 2)"
"prediction, diff, im, err, A = predict(images, 2)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 55,
"id": "434e4d2f",
"metadata": {},
"outputs": [],
......@@ -176,20 +163,23 @@
" new_e = error.copy()\n",
" rows, columns = new_e.shape\n",
"\n",
" for r in range(1, rows-1):\n",
" for r in range(1, rows-1): #Iterate through the inside square of the error matrix\n",
" for c in range(1, columns-1):\n",
" z0, z1, z2, z3 = new_e[r-1][c-1], new_e[r-1][c], new_e[r-1][c+1], new_e[r][c-1]\n",
" y = np.vstack((-z0+z2-z3, z0+z1+z2, -z0-z1-z2-z3))\n",
" \n",
" new_e[r][c] = np.round(new_e[r][c] + np.linalg.solve(A,y)[-1], 1)\n",
" \n",
" z0, z1, z2, z3 = new_e[r-1][c-1], new_e[r-1][c], new_e[r-1][c+1], new_e[r][c-1] #Grab the four nearest pixels\n",
" y = np.vstack((-z0+z2-z3, z0+z1+z2, -z0-z1-z2-z3)) #Create a vector of the linear combinations for the\n",
" #solution to be solved\n",
" \n",
" new_e[r][c] = np.round(new_e[r][c] + np.linalg.solve(A,y)[-1], 1) #Add the error to the solved system solution\n",
" #rounding the result because np.linalg.solve(A,y)\n",
" #can be a float. Since we did np.floor on it in\n",
" #prediction, we round to the nearest integer here\n",
" return new_e.astype(int)\n",
" "
]
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 56,
"id": "3cc609dc",
"metadata": {},
"outputs": [],
......@@ -199,7 +189,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 57,
"id": "5d290a0c",
"metadata": {},
"outputs": [
......@@ -215,7 +205,7 @@
" [ True, True, True, ..., True, True, True]])"
]
},
"execution_count": 7,
"execution_count": 57,
"metadata": {},
"output_type": "execute_result"
}
......@@ -226,130 +216,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"id": "706f2816",
"metadata": {},
"outputs": [],
"source": [
"first = []\n",
"second = []\n",
"third = []\n",
"fourth = []\n",
"\n",
"for i in range(1,diff.shape[0]-1):\n",
" for j in range(1,diff.shape[1]-1):\n",
" if diff[i][j] <= 50:\n",
" first.append(np.abs(err[i][j]))\n",
" elif diff[i][j] > 50 and diff[i][j] <= 100:\n",
" second.append(np.abs(err[i][j]))\n",
" elif diff[i][j] > 100 and diff[i][j] <= 200:\n",
" third.append(np.abs(err[i][j]))\n",
" else:\n",
" fourth.append(np.abs(err[i][j]))\n"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "530d2cab",
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAD4CAYAAADy46FuAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAS5klEQVR4nO3dcayd9X3f8fdndksgEcSAYdR2dt1htQW0LOGKus1UVXNX3BDF/AHSnZZhbZYsIbbSqlNnL9KibUICrSot0mBCIcXQKGC56bAS0cYyrapJ1NQkacE4HreFwQ0udgalrFNITL/74/zudnxz/QPfY/ucC++XdHSe5/s8v+d87/U9/tzn95xzbqoKSZJO5e+MuwFJ0mQzKCRJXQaFJKnLoJAkdRkUkqSuleNu4Ey79NJLa2pqatxtSNKy8vTTT3+nqlYvtu09FxRTU1McPHhw3G1I0rKS5H+eats7Tj0l+UKSY0meHapdnGRfkufb/aqhbTuTzCY5kuT6ofq1SZ5p2+5JklY/L8mjrX4gydTQmK3tMZ5PsnUJX7skaUTv5hrFg8DmBbUdwP6q2gDsb+skuQqYAa5uY+5NsqKNuQ/YDmxot/ljbgNer6orgbuBu9qxLgY+B/wkcB3wueFAkiSdG+8YFFX1R8BrC8pbgF1teRdw41D9kap6q6peAGaB65JcAVxYVU/W4K3gDy0YM3+sPcCmdrZxPbCvql6rqteBffxgYEmSzrKlvurp8qo6CtDuL2v1NcDLQ/vNtdqatrywftKYqjoBvAFc0jnWD0iyPcnBJAePHz++xC9JkrSYM/3y2CxSq059qWNOLlbdX1XTVTW9evWiF+0lSUu01KB4tU0n0e6PtfocsG5ov7XAK62+dpH6SWOSrAQuYjDVdapjSZLOoaUGxV5g/lVIW4HHhuoz7ZVM6xlctH6qTU+9mWRju/5wy4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/vcBMkvOSrAc2AE+NoT9g8IpH4N8Cn66q/zO0aaL6rKpnquqyqppqz7E54OPt5/js9lpV3ga/QHySwSse/hz47Lj7WdDbP2JwGvlnwDfb7ZPAJQxeTfJ8u7943L0O9fyzwFfa8iT3+Q+Bg+17+9+AVZPYL/AfgG8BzwIPA+dNUp/AlxhcP/k+g//AtvX6YzCF8ufAEeAXxtznLIP5/fnn1n8dd5+n6nXB9heBS89Fr36EhySpy6knSVKXQSFJ6jIoJEldBoUkqcugkCR1GRSSpC6DQpLU9X8BbXd7N+pch/oAAAAASUVORK5CYII=\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"142\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAD4CAYAAADy46FuAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAYHUlEQVR4nO3dfaxc9Z3f8fcndh6cBwgPhrq+zpoN3moBKWZxXbdpq2wcLV6IYiKB5KgJrurKESJV0m67NRupm/xhCbZNWCEVKhIohmQDFkkWKwltKCSNVmLtvWR5MsTlprBwgxc7gRDSCm9Mvv1jfnc7vozPvb732jOE90s6mjPfc34z33Od4ZPzMHNSVUiSdDRvGHYDkqTRZlBIkjoZFJKkTgaFJKmTQSFJ6rR42A3M1emnn14rV64cdhuS9JrywAMP/Liqlh7LmNdsUKxcuZLx8fFhtyFJrylJ/upYx3joSZLUyaCQJHUyKCRJnQwKSVIng0KS1MmgkCR1mnVQJFmU5C+TfKM9PzXJPUmeaI+n9K17VZKJJPuSXNhXvyDJI23ZdUnS6m9Ocker706ycgG3UZI0D8eyR/FJ4PG+59uAe6tqFXBve06Sc4BNwLnABuD6JIvamBuArcCqNm1o9S3AC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FJehem/PUo9Af8KfB+gCS/Qe9ijx/PubfjeaXAKE7ARfSuLvoh8Okh9/KP6e32PQw82KaLgNOAe4En2uOpQ+7zffz/q55GpjdgNTDe/n5/Sm9Xe5T6+yzwA+BR4DZ6V5oMpT/gK/TOlfyC3n/UtnT1Qu+wyg+BfcDvDqm/CXrH06c+G/9llPqbtvwp2lVPJ7q/o/zt3gR8qf1v7/vA++fTmz/hIUnq9Ho79CRJOkYGhSSpk0EhSepkUEiSOhkUkqROBoUkqZNBIUnq9P8Af5IATMUnx5sAAAAASUVORK5CYII=\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"154\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYQAAAD5CAYAAAAndkJ4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAAsTAAALEwEAmpwYAAATO0lEQVR4nO3cb4xc53me8esumbCyXTmStVKVXbrLxmwaimhta6GyNRCoZRuxlWGqgIWs0URES4CtwDROkyIhkw/qFwIy0sat0IoAG6mkUlcModgQUVuOVTqBUUCWsrKVUBTDahuy4pqMuI5dh20RpmSefpiXzWg5u9ydoXdI7vUDBufMc973nHcODvbe82cmVYUkSX9m2AOQJF0fDARJEmAgSJIaA0GSBBgIkqTGQJAkAbD6ag2SPA18FDhXVRvnLPvnwC8CI1X1zVbbDWwHLgE/WVW/3ur3AvuBW4AvAJ+sqkqyBngGuBf4A+BHq+rU1cZ1xx131Pj4+OI+pSQJgFdfffWbVTXSa9lVA4HOH/F/S+eP9v+XZC3wd4C3umobgEngHuD7gf+S5C9V1SVgL7AD+CqdQNgCvEAnPL5dVR9IMgl8CvjRqw1qfHycqampRQxfknRZkv8x37KrXjKqqq8A3+qx6NPAzwLd32z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23F1M9rPlfsF4NPtmPlgu/e30vbLReBnquqHgE3Azvb5b/hjZkUFAv5ExmJsBQ60+QPAQ8MbyvKoqq8A35pTnm8/bAUOVtWFqjoJTNM5rm468+yX+ayk/XK2qr7W5s8Dx+n82sINf8ystEDo9RMZo0May/WggC8lebV9Cxzgrqo6C50DH7hzaKMbrvn2g8cQ/ESS32mXlC5fFlmR+yXJOPAh4GVugmNmpQXCon4iYwX5SFV9mM4ltJ1JfnjYA7oBrPRjaC/wA8AHgbPAv2r1FbdfkrwH+DXgp6rqDxdq2qN2Xe6blRYIi/qJjJWiqs606Tngc3ROY99OcjdAm54b3giHar79sKKPoap6u6ouVdWfAP+eP730saL2S5LvoRMGn6mqz7byDX/MrLRA8CcymiTvTvLnLs8DPwK8Tmd/bGvNtgHPD2eEQzfffjgMTCZZk2QdsB54ZQjjG4rLf/Cav0/nmIEVtF+SBHgKOF5Vv9S16IY/Zq6bbyovB38i4x3uAj7XObZZDfynqvpikt8CDiXZDrwFPDzEMS6LJM8C9wN3JJkBHgMep8d+qKpjSQ4Bb9B52mRnVV0aysC/y+bZL/cn+SCdSx6ngH8MK2u/AB8Bfhw4muS1Vvt5boJjxm8qS5KAlXfJSJI0DwNBkgQYCJKkxkCQJAEGgiSpMRAkSYCBIElqDARJEgD/D3/c8qD4M7TnAAAAAElFTkSuQmCC\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"217\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAX0AAAD4CAYAAAAAczaOAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAQNklEQVR4nO3de4xc51nH8e8Pu02voQnZRMY2rINMwakECVYolFZIqYiblDqAglxRsC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3edKZ1BN7WPYcPA6+bkH6P0jsffvp5+55u7M91z4+HgPuBn56AXhf8uo9zbQf12tU/APzqvLFLvq5ehkGSGnI+nt6RJC3A0Jekhhj6ktQQQ1+SGmLoS1JDDH1JaoihL0kN+X9zV5wNb21OegAAAABJRU5ErkJggg==\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"176\n"
]
}
],
"source": [
"\n",
"plt.hist(first)\n",
"plt.show()\n",
"print(np.max(first))\n",
"plt.hist(second)\n",
"plt.show()\n",
"print(np.max(second))\n",
"plt.hist(third)\n",
"plt.show()\n",
"print(np.max(third))\n",
"plt.hist(fourth)\n",
"plt.show()\n",
"print(np.max(fourth))"
]
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 60,
"id": "bb11dcd0",
"metadata": {},
"outputs": [],
......@@ -397,51 +264,68 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 127,
"id": "c01fda28",
"metadata": {},
"outputs": [],
"source": [
"def enc_experiment(images, plot=True):\n",
" origin, predict, diff, error, A = plot_hist(images, 2)\n",
" image = Image.open(images[2]) #Open the image and read it as an Image object\n",
" image = np.array(image)[1:,:] #Convert to an array, leaving out the first row because the first row is just housekeeping data\n",
" image = image.astype(int)\n",
" new_error = np.copy(image)\n",
"def encoder(images, i, plot=True):\n",
" \"\"\"\n",
" Function that creates Huffman encodings out of the error values\n",
" for a given image. The encodings are more efficient ways to store \n",
" large integer values that the original image contains.\n",
" \n",
" Parameters:\n",
" images (list): list of file paths to the images that\n",
" will be encoded.\n",
" \n",
" i (int): which index of the images list to grab and\n",
" then encode.\n",
" \n",
" plot (bool): if true, this plots the error matrix to \n",
" show the distribution of values.\n",
" \"\"\"\n",
" \n",
" prediction, diff, original, error, A = predict(images, i) #Predict the values and return the error for the specified image\n",
" image = original \n",
" new_error = np.copy(image) #Create a new matrix that is a copy of the original image, this is the matrix we will\n",
" #update on throughout\n",
" #new_error[1:-1,1:-1] = np.reshape(error[1:-1,1:-1],(510, 638))\n",
" new_error[1:-1, 1:-1] = error[1:-1, 1:-1]\n",
" keep = new_error[0,0]\n",
" new_error[0,:] = new_error[0,:] - keep\n",
" new_error[-1,:] = new_error[-1,:] - keep\n",
" new_error[1:-1,0] = new_error[1:-1,0] - keep\n",
" new_error[1:-1, 1:-1] = error[1:-1, 1:-1] #Set the inside of the updating matrix to be the same as the \n",
" #error matrix retreived from predicting\n",
" keep = new_error[0,0] #The top left entry stays the same\n",
" new_error[0,:] = new_error[0,:] - keep #All edge pixels are set to be the difference between themselves and\n",
" new_error[-1,:] = new_error[-1,:] - keep #the top left entry named \"keep\". This reduces their size to a more\n",
" new_error[1:-1,0] = new_error[1:-1,0] - keep #manageable integer and makes them encodeable with the other error values\n",
" new_error[1:-1,-1] = new_error[1:-1,-1] - keep\n",
" new_error[0,0] = keep\n",
" new_error = np.ravel(new_error)\n",
" \n",
" new_error = np.ravel(new_error) #Unravel it to plot it\n",
" if plot:\n",
" plt.hist(new_error[1:],bins=100)\n",
" plt.show()\n",
" \n",
" #ab_error = np.abs(new_error)\n",
" #string = [str(i) for i in ab_error]\n",
" string = [str(i) for i in new_error]\n",
" #string = [str(i) for i in np.arange(0,5)] + [str(i) for i in np.arange(0,5)] + [str(i) for i in np.arange(0,2)]*2\n",
" freq = dict(Counter(string))\n",
" freq = sorted(freq.items(), key=lambda x: x[1], reverse=True)\n",
"\n",
" string = [str(i) for i in new_error] #Create strings out of the integers in the new_error matrix\n",
" \n",
" freq = dict(Counter(string)) #Initialize a dictionary that maps integers to the string values\n",
" freq = sorted(freq.items(), key=lambda x: x[1], reverse=True) #Create a frequency mapping of how often the string\n",
" #values occur in the dictionary\n",
" node = make_tree(freq) #Use the Huffman code given above to make a Huffman tree\n",
" \n",
" encoding_dict = huffman_code_tree(node) #Create the Huffman dictionary\n",
" \n",
" node = make_tree(freq)\n",
" encoding_dict = huffman_code_tree(node)\n",
" #encoded = [\"1\"+encoding[str(-i)] if i < 0 else \"0\"+encoding[str(i)] for i in error]\n",
" #print(time.time()-start)\n",
" encoded = new_error.reshape((512,640)).copy().astype(str).astype(object)\n",
"\n",
" for i in range(encoded.shape[0]):\n",
" encoded = new_error.reshape((512,640)).copy().astype(str).astype(object) #Reshape the error matrix and make a copy that\n",
" #that is all strings so we can call the \n",
" #dictionary on its entries\n",
" for i in range(encoded.shape[0]): #Iterate through the string valued error dictionary\n",
" for j in range(encoded.shape[1]):\n",
" if i == 0 and j == 0:\n",
" encoded[i][j] = encoded[i][j]\n",
" encoded[i][j] = encoded[i][j] #Replace each value in the dictionary with its encoding from the dictionary\n",
" else:\n",
" #print(encoding_dict[encoded[i][j]])\n",
" encoded[i][j] = encoding_dict[encoded[i][j]]\n",
" #print(encoded[i][j])\n",
" \n",
" return encoding_dict, encoded, new_error.reshape((512,640)), image\n",
" #print(encoding)"
......@@ -449,38 +333,17 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 62,
"id": "ffa858e8",
"metadata": {},
"outputs": [],
"source": [
"encode_dict, encoding, error, orig_image = enc_experiment(images, plot=False)"
"encode_dict, encoding, error, orig_image = encoder(images, 2, plot=False)"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "8dfdedc6",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"error[1,6]"
]
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 121,
"id": "825cc48c",
"metadata": {},
"outputs": [],
......@@ -490,8 +353,8 @@
" Function that accecpts the prediction matrix A for the linear system,\n",
" the encoded matrix of error values, and the encoding dicitonary.\n",
" \"\"\"\n",
" the_keys = list(encode_dict.keys())\n",
" the_values = list(encode_dict.values())\n",
" the_keys = list(encoding_dict.keys())\n",
" the_values = list(encoding_dict.values())\n",
" error_matrix = encoded_matrix.copy()\n",
" \n",
" for i in range(error_matrix.shape[0]):\n",
......@@ -513,7 +376,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 122,
"id": "ba1d2c2c",
"metadata": {},
"outputs": [],
......@@ -523,7 +386,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 123,
"id": "b2cdce6d",
"metadata": {},
"outputs": [],
......@@ -534,11 +397,60 @@
},
{
"cell_type": "code",
"execution_count": null,
"id": "a42c21b1",
"execution_count": 124,
"id": "a686a66e",
"metadata": {},
"outputs": [],
"source": [
"def test_decoder():\n",
" n = len(images)//12\n",
" fails = 0\n",
" for i in range(n):\n",
" encode_dict1, encoding1, error1, orig_image1 = encoder(images, i, plot=False)\n",
" new_error = decoder(A, encoding1, encode_dict1)\n",
" reconstructed_image = reconstruct(new_error, A)\n",
" if False in np.ravel(reconstructed_image == orig_image):\n",
" fails += 0\n",
" return fails/n\n",
"f = test_decoder()"
]
},
{
"cell_type": "code",
"execution_count": 137,
"id": "76374cc0",
"metadata": {},
"outputs": [],
"source": []
"source": [
"def entropy_func(images):\n",
" entr = []\n",
" for i in range(len(images)):\n",
" prediction, diff, im, err, A = predict(images, i)\n",
" panda_im = pd.Series(np.ravel(im))\n",
" counts = panda_im.value_counts()\n",
" entr.append(sp.stats.entropy(counts))\n",
" return entr\n",
"\n",
"e = entropy_func(images)"
]
},
{
"cell_type": "code",
"execution_count": 139,
"id": "f62bc952",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"6.7830123821108295\n"
]
}
],
"source": [
"print(np.mean(e))"
]
}
],
"metadata": {
......
......@@ -2,45 +2,12 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 134,
"id": "dbef8759",
"metadata": {
"id": "dbef8759"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Average Error: 19.44221679267325\n",
"Standard Deviaiton of Mean Errors: 0.17734010606906342\n",
"Average Difference: 51.95430150900486\n",
"Average Time per Image for First: 0.058679431676864624\n"
]
},
{
"data":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zVKHh/v2PxbA+d5JOBH4AfCYi9vXQ9djn8+SEUgUR8Z6e9ku6BrgMeHd6eQZ6nnZmRpntg15v56kbw+48VaiSqY2Gux2SpkYyiWzpNE3D9txJGkmSTL4bEXenm6t2nnzJK2PpQmFfAC6PiNJFG5YBV0gaLWk20Ag8nDY5X5J0YTpq6WqG9/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": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Std Deviation of E: 26.627504708827136\n",
"Normal bits: 15\n",
"Encoded Bits: 6.677845333316752\n",
"(258, 322)\n"
]
}
],
"outputs": [],
"source": [
"import numpy as np\n",
"from prediction_MSE_Scout import file_extractor, image_extractor, im_distribution\n",
......@@ -54,24 +21,48 @@
"from numpy import linalg as la\n",
"from scipy.stats import gaussian_kde\n",
"import seaborn as sns\n",
"import pywt\n",
"from collections import Counter"
"from collections import Counter\n",
"import pandas as pd\n",
"import scipy as sp"
]
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 126,
"id": "9ed20f84",
"metadata": {
"id": "9ed20f84"
},
"outputs": [],
"source": [
"def plot_hist(tiff_list, i=0):\n",
"def predict(tiff_list, i=0):\n",
" \"\"\"\n",
" This function is the leftovers from the first attempt to plot histograms.\n",
" As it stands it needs some work in order to function again. We will\n",
" fix this later. 1/25/22\n",
" This function predicts the pixel values based on a linear combination\n",
" of the MSE from the three pixels above it and the one to the left. It\n",
" uses a system of equations to fit the plane ax + by + c and takes c\n",
" as the prediction for the unknown pixel. It does this all at once\n",
" by constructing vectors and matrices of the surrounding pixels and solving each system simultaneously\n",
" so as not to iterate through each one.\n",
" \n",
" Parameters:\n",
" tiff_list: list, list of names of image file paths to access. These should be strings\n",
" in the form of a path to the image\n",
" \n",
" i: int, which index in the tiff_list of images we want to predict on\n",
" \n",
" Returns:\n",
" prediction: matrix (ndarray), the matrix of predicted values\n",
" for the image using the previous four piexels\n",
" \n",
" diff: matrix (ndarray), the difference between the highest and lowest valued surrounding four pixels\n",
" \n",
" image_int: matrix (ndarray), the original image, changed into integers\n",
" \n",
" error: matrix (ndarray), a matrix of errors, so each entry is the \n",
" difference between the integer predicted value and the actual value. Should\n",
" be all integers\n",
" \n",
" A: matrix (3,3 ndarray), the matrix used to solve the MSE system\n",
" \"\"\"\n",
" \n",
" image = tiff_list[i]\n",
......@@ -94,7 +85,7 @@
" \n",
" # use numpy solver to solve the system of equations all at once\n",
" #predict = np.linalg.solve(A,y)[-1]\n",
" predict = np.floor(np.linalg.solve(A,y)[-1]).astype(int)\n",
" prediction = np.floor(np.linalg.solve(A,y)[-1]).astype(int)\n",
" #predict = []\n",
" \n",
" # flatten the neighbor pixels and stack them together\n",
......@@ -112,11 +103,7 @@
" small_image = image_int[1:-1,1:-1]\n",
" \n",
" #Reshape the predictions to be a 2D array\n",
" predict = np.pad(predict.reshape(510,638), pad_width=1)\n",
" \"\"\"predict[0,:] = image[0,:]\n",
" predict[:,0] = image[:,0]\n",
" predict[:,-1] = image[:,-1]\n",
" predict[-1,:] = image[-1,:]\"\"\"\n",
" prediction = np.pad(prediction.reshape(510,638), pad_width=1)\n",
" \n",
" \n",
" #Calculate the error between the original image and our predictions\n",
......@@ -125,15 +112,15 @@
" #error = (image_int - predict).astype(int) #Experiment\n",
" \n",
" #this one works\n",
" error = image_int - predict\n",
" error = image_int - prediction\n",
"\n",
" \n",
" return predict, diff, image_int, error, A"
" return prediction, diff, image_int, error, A"
]
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 53,
"id": "ba2881d9",
"metadata": {},
"outputs": [],
......@@ -145,17 +132,17 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 54,
"id": "11e95c34",
"metadata": {},
"outputs": [],
"source": [
"predict, diff, im, err, A = plot_hist(images, 2)"
"prediction, diff, im, err, A = predict(images, 2)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 55,
"id": "434e4d2f",
"metadata": {},
"outputs": [],
......@@ -176,20 +163,23 @@
" new_e = error.copy()\n",
" rows, columns = new_e.shape\n",
"\n",
" for r in range(1, rows-1):\n",
" for r in range(1, rows-1): #Iterate through the inside square of the error matrix\n",
" for c in range(1, columns-1):\n",
" z0, z1, z2, z3 = new_e[r-1][c-1], new_e[r-1][c], new_e[r-1][c+1], new_e[r][c-1]\n",
" y = np.vstack((-z0+z2-z3, z0+z1+z2, -z0-z1-z2-z3))\n",
" \n",
" new_e[r][c] = np.round(new_e[r][c] + np.linalg.solve(A,y)[-1], 1)\n",
" \n",
" z0, z1, z2, z3 = new_e[r-1][c-1], new_e[r-1][c], new_e[r-1][c+1], new_e[r][c-1] #Grab the four nearest pixels\n",
" y = np.vstack((-z0+z2-z3, z0+z1+z2, -z0-z1-z2-z3)) #Create a vector of the linear combinations for the\n",
" #solution to be solved\n",
" \n",
" new_e[r][c] = np.round(new_e[r][c] + np.linalg.solve(A,y)[-1], 1) #Add the error to the solved system solution\n",
" #rounding the result because np.linalg.solve(A,y)\n",
" #can be a float. Since we did np.floor on it in\n",
" #prediction, we round to the nearest integer here\n",
" return new_e.astype(int)\n",
" "
]
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 56,
"id": "3cc609dc",
"metadata": {},
"outputs": [],
......@@ -199,7 +189,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 57,
"id": "5d290a0c",
"metadata": {},
"outputs": [
......@@ -215,7 +205,7 @@
" [ True, True, True, ..., True, True, True]])"
]
},
"execution_count": 7,
"execution_count": 57,
"metadata": {},
"output_type": "execute_result"
}
......@@ -226,130 +216,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"id": "706f2816",
"metadata": {},
"outputs": [],
"source": [
"first = []\n",
"second = []\n",
"third = []\n",
"fourth = []\n",
"\n",
"for i in range(1,diff.shape[0]-1):\n",
" for j in range(1,diff.shape[1]-1):\n",
" if diff[i][j] <= 50:\n",
" first.append(np.abs(err[i][j]))\n",
" elif diff[i][j] > 50 and diff[i][j] <= 100:\n",
" second.append(np.abs(err[i][j]))\n",
" elif diff[i][j] > 100 and diff[i][j] <= 200:\n",
" third.append(np.abs(err[i][j]))\n",
" else:\n",
" fourth.append(np.abs(err[i][j]))\n"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "530d2cab",
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAD4CAYAAADy46FuAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAAsTAAALEwEAmpw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AAAASUVORK5CYII=\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"142\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAD4CAYAAADy46FuAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAYHUlEQVR4nO3dfaxc9Z3f8fcndh6cBwgPhrq+zpoN3moBKWZxXbdpq2wcLV6IYiKB5KgJrurKESJV0m67NRupm/xhCbZNWCEVKhIohmQDFkkWKwltKCSNVmLtvWR5MsTlprBwgxc7gRDSCm9Mvv1jfnc7vozPvb732jOE90s6mjPfc34z33Od4ZPzMHNSVUiSdDRvGHYDkqTRZlBIkjoZFJKkTgaFJKmTQSFJ6rR42A3M1emnn14rV64cdhuS9JrywAMP/Liqlh7LmNdsUKxcuZLx8fFhtyFJrylJ/upYx3joSZLUyaCQJHUyKCRJnQwKSVIng0KS1MmgkCR1mnVQJFmU5C+TfKM9PzXJPUmeaI+n9K17VZKJJPuSXNhXvyDJI23ZdUnS6m9Ocker706ycgG3UZI0D8eyR/FJ4PG+59uAe6tqFXBve06Sc4BNwLnABuD6JIvamBuArcCqNm1o9S3AC1V1NnAtcM2ctkaStOBmFRRJxoCLgS/2lTcCO9r8DuCSvvrtVXWoqp4EJoC1SZYBJ1XV/dW7Ccat08ZMvdadwPqpvQ1J0nDN9pvZfwz8PvCOvtqZVbUfoKr2Jzmj1ZcDf9633mSr/aLNT69PjXmmvdbhJC8CpwE/7m8iyVZ6eyS8613vmmXrr7Zy2zfnPHa+nrr64qG9tyTNxYx7FEk+CByoqgdm+ZqD9gSqo9415shC1Y1Vtaaq1ixdekw/VSJJmqPZ7FG8F/hQkouAtwAnJfkS8FySZW1vYhlwoK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CYII=\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"154\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYQAAAD5CAYAAAAndkJ4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAAsTAAALEwEAmpwYAAATO0lEQVR4nO3cb4xc53me8esumbCyXTmStVKVXbrLxmwaimhta6GyNRCoZRuxlWGqgIWs0URES4CtwDROkyIhkw/qFwIy0sat0IoAG6mkUlcModgQUVuOVTqBUUCWsrKVUBTDahuy4pqMuI5dh20RpmSefpiXzWg5u9ydoXdI7vUDBufMc973nHcODvbe82cmVYUkSX9m2AOQJF0fDARJEmAgSJIaA0GSBBgIkqTGQJAkAbD6ag2SPA18FDhXVRvnLPvnwC8CI1X1zVbbDWwHLgE/WVW/3ur3AvuBW4AvAJ+sqkqyBngGuBf4A+BHq+rU1cZ1xx131Pj4+OI+pSQJgFdfffWbVTXSa9lVA4HOH/F/S+eP9v+XZC3wd4C3umobgEngHuD7gf+S5C9V1SVgL7AD+CqdQNgCvEAnPL5dVR9IMgl8CvjRqw1qfHycqampRQxfknRZkv8x37KrXjKqqq8A3+qx6NPAzwLd32zbChysqgtVdRKYBu5Lcjdwa1W9VJ1vwj0DPNTV50Cbfw7YnCRXG5ck6drq6x5Cko8B36iq356zaBQ43fV+ptVG2/zc+jv6VNVF4DvA+/oZlySpf4u5ZPQOSd4F/ALwI70W96jVAvWF+vTa9g46l514//vff9WxSpIWr58zhB8A1gG/neQUMAZ8Lcmfp/Of/9qutmPAmVYf61Gnu0+S1cB76X2JiqraV1UTVTUxMtLznogkqU9LDoSqOlpVd1bVeFWN0/mD/uGq+n3gMDCZZE2SdcB64JWqOgucT7Kp3R94BHi+rfIws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xe6blRYIi/qJjJWiqs606Tngc3ROY99OcjdAm54b3giHar79sKKPoap6u6ouVdWfAP+eP730saL2S5LvoRMGn6mqz7byDX/MrLRA8CcymiTvTvLnLs8DPwK8Tmd/bGvNtgHPD2eEQzfffjgMTCZZk2QdsB54ZQjjG4rLf/Cav0/nmIEVtF+SBHgKOF5Vv9S16IY/Zq6bbyovB38i4x3uAj7XObZZDfynqvpikt8CDiXZDrwFPDzEMS6LJM8C9wN3JJkBHgMep8d+qKpjSQ4Bb9B52mRnVV0aysC/y+bZL/cn+SCdSx6ngH8MK2u/AB8Bfhw4muS1Vvt5boJjxm8qS5KAlXfJSJI0DwNBkgQYCJKkxkCQJAEGgiSpMRAkSYCBIElqDARJEgD/D3/c8qD4M7TnAAAAAElFTkSuQmCC\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"217\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAX0AAAD4CAYAAAAAczaOAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAQNklEQVR4nO3de4xc51nH8e8Pu02voQnZRMY2rINMwakECVYolFZIqYiblDqAglxRsCCSBUqh5SJwqET7jyWXSwVIpJVp0xoITU0vikVUaGRaKiRI2NyaOK6x27jJNq69bQUtF6V1+vDHHFeTzaydndndGfv9fqTVnHnmPfs+fnf827Nnds6mqpAkteE7xt2AJGnlGPqS1BBDX5IaYuhLUkMMfUlqyOpxN3A2l1xySU1PT4+7DUk6p9x3331frqqp+fWJD/3p6WlmZmbG3YYknVOSfGFQ3dM7ktQQQ1+SGmLoS1JDDH1JaoihL0kNMfQlqSGGviQ1xNCXpIYY+pLUkIl/R+4opnfeNZZ5j+2+fizzStLZeKQ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V+eVF1rHrcAdVfVUVT0GHKX33F4xg/qtqk9U1anu7r/Re6/N2C2wtgsZ69qeqdckAX4e+OByzX8+hv6gSz1MbKAmmQauBO7pSm/ufnS+bRJOmXQK+ESS+7pLZABcVlXHofdNDLh0bN0Nto1n/seZxHWFhdfxXHge/wrw8b77G5I8kOSfk7x6XE3NM+jrPslr+2rgRFUd6ast6bqej6H/nC71MAmSvAT4CPDWqvoa8G7g+4AfBo7T+zFvEryqqq6id3XUm5O8ZtwNnUn3xr83AH/XlSZ1Xc9kop/HSd4GnAJu70rHge+pqiuB3wL+NsmF4+qvs9DXfZLX9o0882Blydf1fAz9c+JSD0meRy/wb6+qjwJU1YmqerqqvgX8JSv84/xCqurJ7vYk8DF6fZ1Isgaguz05vg6f5XXA/VV1AiZ3XTsLrePEPo+TbAdeD/xCdSeeu1MlX+m276N3nvz7x9flGb/uE7m2SVYDPwt86HRtOdb1fAz9ib/UQ3fe7n3Aoap6V199Td+wnwEemb/vSkvy4iQvPb1N74W8R+it6fZu2HbgzvF0ONAzjpYmcV37LLSO+4FtSS5IsgHYCNw7hv6eIckW4PeAN1TV//bVp9L7exkkuZxev58fT5ff7mmhr/tEri3wWuCzVTV7urAs67pSr1iv5AdwHb3fiPkc8LZx9zOgv5+g9+PkZ4AHu4/rgL8GHu7q+4E1E9Dr5fR+0+Eh4ODp9QS+CzgAHOluLx53r11fLwK+AnxnX20i1pXeN6LjwDfpHW3edKZ1BN7WPYcPA6+bkH6P0jsffvp5+55u7M91z4+HgPuBn56AXhf8uo9zbQf12tU/APzqvLFLvq5ehkGSGnI+nt6RJC3A0Jekhhj6ktQQQ1+SGmLoS1JDDH1JaoihL0kN+X9zV5wNb21OegAAAABJRU5ErkJggg==\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"176\n"
]
}
],
"source": [
"\n",
"plt.hist(first)\n",
"plt.show()\n",
"print(np.max(first))\n",
"plt.hist(second)\n",
"plt.show()\n",
"print(np.max(second))\n",
"plt.hist(third)\n",
"plt.show()\n",
"print(np.max(third))\n",
"plt.hist(fourth)\n",
"plt.show()\n",
"print(np.max(fourth))"
]
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 60,
"id": "bb11dcd0",
"metadata": {},
"outputs": [],
......@@ -397,51 +264,68 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 127,
"id": "c01fda28",
"metadata": {},
"outputs": [],
"source": [
"def enc_experiment(images, plot=True):\n",
" origin, predict, diff, error, A = plot_hist(images, 2)\n",
" image = Image.open(images[2]) #Open the image and read it as an Image object\n",
" image = np.array(image)[1:,:] #Convert to an array, leaving out the first row because the first row is just housekeeping data\n",
" image = image.astype(int)\n",
" new_error = np.copy(image)\n",
"def encoder(images, i, plot=True):\n",
" \"\"\"\n",
" Function that creates Huffman encodings out of the error values\n",
" for a given image. The encodings are more efficient ways to store \n",
" large integer values that the original image contains.\n",
" \n",
" Parameters:\n",
" images (list): list of file paths to the images that\n",
" will be encoded.\n",
" \n",
" i (int): which index of the images list to grab and\n",
" then encode.\n",
" \n",
" plot (bool): if true, this plots the error matrix to \n",
" show the distribution of values.\n",
" \"\"\"\n",
" \n",
" prediction, diff, original, error, A = predict(images, i) #Predict the values and return the error for the specified image\n",
" image = original \n",
" new_error = np.copy(image) #Create a new matrix that is a copy of the original image, this is the matrix we will\n",
" #update on throughout\n",
" #new_error[1:-1,1:-1] = np.reshape(error[1:-1,1:-1],(510, 638))\n",
" new_error[1:-1, 1:-1] = error[1:-1, 1:-1]\n",
" keep = new_error[0,0]\n",
" new_error[0,:] = new_error[0,:] - keep\n",
" new_error[-1,:] = new_error[-1,:] - keep\n",
" new_error[1:-1,0] = new_error[1:-1,0] - keep\n",
" new_error[1:-1, 1:-1] = error[1:-1, 1:-1] #Set the inside of the updating matrix to be the same as the \n",
" #error matrix retreived from predicting\n",
" keep = new_error[0,0] #The top left entry stays the same\n",
" new_error[0,:] = new_error[0,:] - keep #All edge pixels are set to be the difference between themselves and\n",
" new_error[-1,:] = new_error[-1,:] - keep #the top left entry named \"keep\". This reduces their size to a more\n",
" new_error[1:-1,0] = new_error[1:-1,0] - keep #manageable integer and makes them encodeable with the other error values\n",
" new_error[1:-1,-1] = new_error[1:-1,-1] - keep\n",
" new_error[0,0] = keep\n",
" new_error = np.ravel(new_error)\n",
" \n",
" new_error = np.ravel(new_error) #Unravel it to plot it\n",
" if plot:\n",
" plt.hist(new_error[1:],bins=100)\n",
" plt.show()\n",
" \n",
" #ab_error = np.abs(new_error)\n",
" #string = [str(i) for i in ab_error]\n",
" string = [str(i) for i in new_error]\n",
" #string = [str(i) for i in np.arange(0,5)] + [str(i) for i in np.arange(0,5)] + [str(i) for i in np.arange(0,2)]*2\n",
" freq = dict(Counter(string))\n",
" freq = sorted(freq.items(), key=lambda x: x[1], reverse=True)\n",
"\n",
" string = [str(i) for i in new_error] #Create strings out of the integers in the new_error matrix\n",
" \n",
" freq = dict(Counter(string)) #Initialize a dictionary that maps integers to the string values\n",
" freq = sorted(freq.items(), key=lambda x: x[1], reverse=True) #Create a frequency mapping of how often the string\n",
" #values occur in the dictionary\n",
" node = make_tree(freq) #Use the Huffman code given above to make a Huffman tree\n",
" \n",
" encoding_dict = huffman_code_tree(node) #Create the Huffman dictionary\n",
" \n",
" node = make_tree(freq)\n",
" encoding_dict = huffman_code_tree(node)\n",
" #encoded = [\"1\"+encoding[str(-i)] if i < 0 else \"0\"+encoding[str(i)] for i in error]\n",
" #print(time.time()-start)\n",
" encoded = new_error.reshape((512,640)).copy().astype(str).astype(object)\n",
"\n",
" for i in range(encoded.shape[0]):\n",
" encoded = new_error.reshape((512,640)).copy().astype(str).astype(object) #Reshape the error matrix and make a copy that\n",
" #that is all strings so we can call the \n",
" #dictionary on its entries\n",
" for i in range(encoded.shape[0]): #Iterate through the string valued error dictionary\n",
" for j in range(encoded.shape[1]):\n",
" if i == 0 and j == 0:\n",
" encoded[i][j] = encoded[i][j]\n",
" encoded[i][j] = encoded[i][j] #Replace each value in the dictionary with its encoding from the dictionary\n",
" else:\n",
" #print(encoding_dict[encoded[i][j]])\n",
" encoded[i][j] = encoding_dict[encoded[i][j]]\n",
" #print(encoded[i][j])\n",
" \n",
" return encoding_dict, encoded, new_error.reshape((512,640)), image\n",
" #print(encoding)"
......@@ -449,38 +333,17 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 62,
"id": "ffa858e8",
"metadata": {},
"outputs": [],
"source": [
"encode_dict, encoding, error, orig_image = enc_experiment(images, plot=False)"
"encode_dict, encoding, error, orig_image = encoder(images, 2, plot=False)"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "8dfdedc6",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"error[1,6]"
]
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 121,
"id": "825cc48c",
"metadata": {},
"outputs": [],
......@@ -490,8 +353,8 @@
" Function that accecpts the prediction matrix A for the linear system,\n",
" the encoded matrix of error values, and the encoding dicitonary.\n",
" \"\"\"\n",
" the_keys = list(encode_dict.keys())\n",
" the_values = list(encode_dict.values())\n",
" the_keys = list(encoding_dict.keys())\n",
" the_values = list(encoding_dict.values())\n",
" error_matrix = encoded_matrix.copy()\n",
" \n",
" for i in range(error_matrix.shape[0]):\n",
......@@ -513,7 +376,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 122,
"id": "ba1d2c2c",
"metadata": {},
"outputs": [],
......@@ -523,7 +386,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 123,
"id": "b2cdce6d",
"metadata": {},
"outputs": [],
......@@ -534,11 +397,60 @@
},
{
"cell_type": "code",
"execution_count": null,
"id": "a42c21b1",
"execution_count": 124,
"id": "a686a66e",
"metadata": {},
"outputs": [],
"source": [
"def test_decoder():\n",
" n = len(images)//12\n",
" fails = 0\n",
" for i in range(n):\n",
" encode_dict1, encoding1, error1, orig_image1 = encoder(images, i, plot=False)\n",
" new_error = decoder(A, encoding1, encode_dict1)\n",
" reconstructed_image = reconstruct(new_error, A)\n",
" if False in np.ravel(reconstructed_image == orig_image):\n",
" fails += 0\n",
" return fails/n\n",
"f = test_decoder()"
]
},
{
"cell_type": "code",
"execution_count": 137,
"id": "76374cc0",
"metadata": {},
"outputs": [],
"source": []
"source": [
"def entropy_func(images):\n",
" entr = []\n",
" for i in range(len(images)):\n",
" prediction, diff, im, err, A = predict(images, i)\n",
" panda_im = pd.Series(np.ravel(im))\n",
" counts = panda_im.value_counts()\n",
" entr.append(sp.stats.entropy(counts))\n",
" return entr\n",
"\n",
"e = entropy_func(images)"
]
},
{
"cell_type": "code",
"execution_count": 139,
"id": "f62bc952",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"6.7830123821108295\n"
]
}
],
"source": [
"print(np.mean(e))"
]
}
],
"metadata": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment