title: Classifier for colors in image
body: <p>I have this image.</p>
  
  <p><a href="https://i.stack.imgur.com/4htJX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4htJX.png" alt="enter image description here"></a></p>
  
  <p>I want to classify all of pixels. The color of the pixels in this image is as follows:</p>
  
  <ol>
  <li>Blue: Water</li>
  <li>Red: Roof</li>
  <li>White: Road</li>
  <li>Yellow: Shallow</li>
  <li>Light Green: Grass</li>
  <li>Dark Green: Tree</li>
  <li>Black: Background</li>
  </ol>
  
  <p>How can I classify all pixels. For example if pixel of 2'column and 1'row is blue then classify (1,2) into water's class and so on.</p>