Merge pull request #124 from alanlivio/master

fix usage of decrypted bytescale
This commit is contained in:
Leandro Moreira
2021-07-29 11:07:27 -03:00
committed by GitHub
3 changed files with 5 additions and 6 deletions

View File

@@ -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"
]
},
@@ -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",
@@ -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')"
]
},

View File

@@ -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"
]
},

View File

@@ -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"
]
},
@@ -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",