title: python openCV debayer
body: <p>I want to debayer a 16bit RAW still image with openCV, but have problems with the cvtColor function.
  Color to Gray gives a correct result with this:</p>
  
  <pre><code>import cv2
  import numpy as np    
  infile = '/media/rainer/IMG_2806.JPG'
  
  img = cv2.imread(infile,1)
  bw = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
  resized = cv2.resize(bw, (0,0), fx=0.3, fy=0.3)
  cv2.imshow('image',resized)
  cv2.waitKey(0)
  cv2.destroyAllWindows()
  </code></pre>
  
  <p>So how would the debayer look like in python 2.7?
  this is not working:</p>
  
  <pre><code>infile = '/media/rainer/test.raw'
  
  img = cv2.imread(infile,0)
  debayer = cv2.cvtColor(img, cv2.CV_BayerBG2BGR)
  resized = cv2.resize(debayer, (0,0), fx=0.3, fy=0.3)
  cv2.imshow('image',resized)
  cv2.waitKey(0)
  cv2.destroyAllWindows()
  </code></pre>
  
  <p>THX a lot for help....</p>