title: What is in Keras img_to_array ? (compared to Bitmap array in C#)
body: <p>I am trying to understand what is in <code>keras.preprocessing.image.img_to_array</code> ? </p>
  
  <p><a href="https://github.com/tensorflow/tensorflow/blob/r1.8/tensorflow/python/keras/_impl/keras/preprocessing/image.py" rel="nofollow noreferrer">https://github.com/tensorflow/tensorflow/blob/r1.8/tensorflow/python/keras/_impl/keras/preprocessing/image.py</a></p>
  
  <p>When I looked at the contents of the array they are as follows (all elements are in float ): </p>
  
  <pre><code>image1 = img_to_array(image.load_img(ImagePath, target_size=(128,128))) / 255
  
  [0.16470588743686676, 0.3019607961177826, 0.07450980693101883], [0.1we23423423486676, 0.3023423423423423, 0.01353463453458483] ......
  </code></pre>
  
  <p>It seems they are RGB channels of the image but why is it in fractions ?. However, if I look at the Bitmap in C#, they are in integers such as  (Alpha,R,G,B) </p>
  
  <pre><code>[100,123,024,132],[021,055,243,015].... 
  </code></pre>
  
  <p>Could someone explain what is the difference in image array generated from img_to_array and Bitmap array formats in C# ?</p>
  
  <p>Thanks,
  PCG</p>