I have a simple picture in Python 3.X I can display it. However, I cannot rotate it, using skimage.transform.rotate.
The error is that my 'Picture' object has no shape. I've seen the .shape included after the rotate command, but it still does not work.
Here is my code
import skimage
from skimage import novice
# New, all black picture
pic = skimage.novice.Picture.from_size((600, 600), color=(0, 0, 0))
# Coloring some pixels in white
for i in range(0, len(all_dots) - 1, 2):
x = all_dots[i]
y = all_dots[i + 1]
pic[x, y] = (255, 255, 255)
from skimage.transform import rotate
new_pic = rotate(pic, 180)
# Also new_pic = rotate(pic, 180).shape does not work
new_pic.show()
Any ideas? Thanks