Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix usage of decrypted bytescale #124

Merged
merged 1 commit into from
Jul 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dct_better_explained.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"from scipy import fftpack\n",
"from scipy.misc import bytescale\n",
"from skimage.util import img_as_ubyte\n",
"import matplotlib.image as mpimg"
]
},
Expand Down Expand Up @@ -59,7 +59,7 @@
],
"source": [
"# loading a simple Z character image (8x8)\n",
"img = bytescale(mpimg.imread('i/z_char_8x8.png'))\n",
"img = img_as_ubyte(mpimg.imread('i/z_char_8x8.png'))\n",
"img_h = 8\n",
"gray_img = img[:,:,0]\n",
"\n",
Expand Down Expand Up @@ -179,7 +179,7 @@
}
],
"source": [
"dct_basis = bytescale(mpimg.imread('i/dct_basis.png'))\n",
"dct_basis = img_as_ubyte(mpimg.imread('i/dct_basis.png'))\n",
"plt.imshow(dct_basis, cmap='gray', interpolation='nearest')"
]
},
Expand Down
1 change: 0 additions & 1 deletion dct_experiences.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"from scipy import fftpack\n",
"from scipy.misc import bytescale\n",
"import matplotlib.image as mpimg"
]
},
Expand Down
4 changes: 2 additions & 2 deletions uniform_quantization_experience.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"from scipy import fftpack\n",
"from scipy.misc import bytescale\n",
"from skimage.util import img_as_ubyte\n",
"import matplotlib.image as mpimg"
]
},
Expand All @@ -38,7 +38,7 @@
"outputs": [],
"source": [
"# loading image\n",
"img = bytescale(mpimg.imread('i/super_mario_head.png'))\n",
"img = img_as_ubyte(mpimg.imread('i/super_mario_head.png'))\n",
"choosen_y_x = 90\n",
"resolution = 128\n",
"\n",
Expand Down