title: Calculate contrast of a color image(RGB)
body: <p>In black and white image,we can easily calculate the contrast by (total no. of white pixels <strong>-</strong> total no. of black pixels).<br>
  How can I calculate this for color(RGB) image?<br>
  Any idea will be appreciated?</p>