ELE492 - ELE492 - Image Process Lecture Notes 7
ELE492 - ELE492 - Image Process Lecture Notes 7
Hacettepe University
Department of Electrical and Electronics Engineering
• import skimage
8
Uploading and Viewing an Image
9
Getting Image Resolution
• We have an image with a resolution of 1536 ×
2048, and it has three channels (because it is
in the RGB color format).
10
Looking at Pixel Values
#Getting Pixel Values
from skimage import io
import pandas as pd
img = io.imread('puppy.jpg')
df = pd.DataFrame(img.flatten())
filepath = 'pixel_values1.xlsx'
df.to_excel(filepath, index=False)
12
pylab
• We used one more module, called pylab.
• We import all the classes present inside pylab
by using *.
• We use pylab to see different figures in
different blocks.
• Then use the function figure to display more
than one image at a go.
13