title: how to separate BGR components of a pixel in color image using openCV
body: <p>Since each pixel memory contains 8 bit for each component Blue,Green and Red. So how can I separate these components from Image or Image Matrix. As
  int Blue = f(Image(X,y));// (x,y) = Coordinate of a pixel of Image
  similarly, for red and green.
  So what should be function f and 2D matrix Image;</p>
  
  <p>Thanks in advance</p>