Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why does opencv swap color channel when we explicitly mention CV_BayerRG2RGB?

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?