mirror of
https://github.com/leandromoreira/digital_video_introduction.git
synced 2026-01-10 06:57:57 -05:00
Merge pull request #124 from alanlivio/master
fix usage of decrypted bytescale
This commit is contained in:
@@ -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')"
|
||||
]
|
||||
},
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user