title: TypeError: Image data can not convert to float
body: <p>I am trying to create a 16-bit image like so:</p>
  <pre><code>import skimage 
  import random
  from random import randint                        
  xrow=raw_input(&quot;Enter the number of rows to be present in image.=&gt;&quot;)
  row=int(xrow)
  ycolumn=raw_input(&quot;Enter the number of columns to be present in image.=&gt;&quot;)
  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)
  </code></pre>
  <p>But I get the error <code>TypeError: Image data can not convert to float</code>.</p>