I want to create a 16 bit image. So I wrote the code.
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 whenever I run this code, I get the error "TypeError: image data cannot convert to float". Is there any solution for this.
I apologize for the errors in my entry, as this is my first question I asked above.
source share