title: converting binary image to gray scale image in Matlab
body: <p>I working on Optical Character Recognition system. </p>
  
  <p>I want to convert the license plate image from binary to gray scale.</p>
  
  <p>let's look at the next example:</p>
  
  <p>this is the binary image:</p>
  
  <p><img src="https://i.stack.imgur.com/AhOw4.png" alt="enter image description here"></p>
  
  <p>and this is the gray scale:</p>
  
  <p><img src="https://i.stack.imgur.com/qkPEW.png" alt="enter image description here"></p>
  
  <p>what I want to know is if there is a way to convert it from binary to the gray, or this is not possible because i've lost the information when I converted the picture to binary at the beginning.</p>
  
  <p>any idea how to do this? thanks</p>