Convert Bayer CV_32F to BGR image

asked 2017-04-26 00:41:19 -0600

sercrpm gravatar 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.

edit retag flag offensive close merge delete