TypeError: Image data can not convert to float

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

import skimage 
import random
from random import randint                        
xrow=raw_input("Enter the number of rows to be present in image.=>")
row=int(xrow)
ycolumn=raw_input("Enter the number of columns to be present in image.=>")
column=int(ycolumn)

A={}
for x in xrange(1,row):
    for y in xrange(1,column):
        a=randint(0,65535)
        A[x,y]=a 

imshow(A)

But I get the error TypeError: Image data can not convert to float.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)