title: Convert grayscale 2D numpy array to RGB image
body: <p>I have a Grayscale 'TIF' image which I've read as a numpy array which is 2D</p>
  <p>The pixel intensities ranging from 17 to 317 in my 2D array.</p>
  <p>I have two challenges</p>
  <ol>
  <li><p>convert this 2D array into RGB image</p>
  </li>
  <li><p>scale the pixel intensities (between 17 to 317) to RGB values and show the Gray scale image as RGB color image</p>
  </li>
  </ol>
  <p><img src="https://i.stack.imgur.com/TdoGc.png" alt="greyscale img" /></p>
  <p>I unfortunately cannot use Opencv and Matplotlib as the end product on which I am working does not support these</p>