I would like to reproduce the cv::cvtColor()
function that converts a raw Bayer image into an RGB
image. There are several different ways like COLOR_BayerBG2BGR
, or COLOR_BayerBG2BGR_VNG
, and COLOR_BayerBG2BGR_EA
. However, I can not find any information on what interpolation method each of those approaches uses. There should be some references to publications or patents. Anyone knows?
OpenCV, as the name already suggests, is open source. Just read the source code if you are interested in what is happening under the hood. Or copy it if you want to "reproduce" the function...
https://github.com/opencv/opencv
Usually its just the average of the neighbouring values. what fancy interpolation method would you expect?