TypeError: Image data can not convert to float

前端 未结 12 741
醉话见心
醉话见心 2020-12-17 07:45

I am trying to create a 16-bit image like so:

import skimage 
import random
from random import randint                        
xrow=raw_input("Enter the          


        
12条回答
  •  长情又很酷
    2020-12-17 08:12

    Try this

    plt.imshow(im.reshape(im.shape[0], im.shape[1]), cmap=plt.cm.Greys)
    

    It would help in some cases.

提交回复
热议问题