I am using Python 2.7 on Ubuntu and I was experimenting with images before beginning an assignment for my algorithms class. I have downloaded numpy, scipy and skimage packages and I keep getting the error that 'imread' 'title' and these inbuilt functions are undefined. Any idea what could be wrong?
from pylab import *
from skimage import img_as_float
img = imread(‘someimage.png’)
img = img_as_float(img)
w, h = img.shape[:2]
R = img[:,:,0]
G = img[:,:,1]
B = img[:,:,2]
figure()
gray()
subplot(1,4,1); imshow(img); title(“RGB”)
subplot(1,4,2); imshow(R); title(“Red”)
subplot(1,4,3); imshow(G); title(“Green”)
subplot(1,4,4); imshow(B); title(“Blue”)
show()