I am converting bayer raw images into 3 channel color image using cvtColor() API. Though I am explicitly mentioning the result image in RGB (CV_BayerRG2RGB) opencv returns image in BGR format. Is this a bug or expected behavior? if expected, then should i convert it again using CV_BGR2RGB?