Skip to content

Commit

Permalink
Merge pull request leandromoreira#124 from alanlivio/master
Browse files Browse the repository at this point in the history
fix usage of decrypted bytescale
  • Loading branch information
leandromoreira authored Jul 29, 2021
2 parents 6f9c3e6 + 1cc2f95 commit cc27579
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
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

0 comments on commit cc27579

Please sign in to comment.