title: Convert grayscale image to RGB
body: <p>I'm not totally sure this is in the right place, so let me know...</p>
  
  <p>Just so I'm being totally transparent, this is part of a coursework for my University course. To that end, please don't post an answer but please DO give me hints &amp; nudges in the right direction. I've been working on it for a few days without much success.</p>
  
  <p>I've been tasked with converting a grayscale image into an RGB image. It's been suggested that we must segment the image and add colours to each segment with an algorithm. It'a also noted that we could develop algorithms for both the RGB &amp; HSI colourspace to improve the visualisation. </p>
  
  <p>My first thought was that we could segment the image using some threshold technique (on the grayscale intensity values) and then add colours to segments, but I'm not sure if this is right. </p>
  
  <p>I'm  programming in Java and have use of the OpenCV library. </p>
  
  <p>Any thought / ideas / hints / suggestions appreciated :)</p>