Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
lirec:firewire_camera_notes [2009-03-24 16:41] 161.23.251.227lirec:firewire_camera_notes [2009-05-08 12:49] davegriffiths
Line 54: Line 54:
 }; };
 </code> </code>
 +
 +===Using OpenCV for the debayering===
 +
 +OpenCV has a built in debayering algorithm, as part of it's colour space conversions. The one which works with the lirec camera is:
 +<code>cvCvtColor(bayerimage, rgbimage, CV_BayerGB2RGB);</code>
 +Where the input is a 1 channel image and the output is 3 channel RGB image.
 +
 +==The bayer pattern image, raw data from the camera CCD==
 +{{:lirec:bayerpattern.png|}}
 +
 +==Converted to RGB==
 +{{:lirec:bayerrgb.png|}}
 +
  • lirec/firewire_camera_notes.txt
  • Last modified: 2009-05-08 12:55
  • by davegriffiths