Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Convert Bayer CV_32F to BGR image

Hello,

Can anyone tell me why cvtColor cannot convert a CV_32F Bayer image into a BGR CV_32FC3 image? In the OpenCV documentation it is said that cvtColor accept single-precision floating-point as input image. However, the following code does not work:

cv::cvtColor(Bayer_32F, RGB_32F, cv::COLOR_BayerBG2BGR);

where Bayer_32F is the single channel input image and RGB_32F is the output color image - Any help is welcome.