2020-07-18 09:36:22 -0600 | marked best answer | Why is elemSize 6 and depth 2 of rgb Mat after CV_BayerBG2BGR ? When using OpenCV RAW to RGB conversion (CV_BayerBG2BGR), the image is displayed correctly but the image basic types are incorrect (elemSize & depth). Even writing the converted Mat to file and then loading it (rgb_path in code below), there is a discrepancy between the loaded rgb image and the converted rgb image, although both display fine. This causes an issue downstream where I convert from Mat to uint8_t* as the buffer size is larger in the converted rgb image. Is this an issue with the conversion itself or my understanding of the conversion / OpenCV basic data types? I am using OpenCV 341. |
2020-07-18 09:36:21 -0600 | received badge | ● Scholar (source) |
2020-07-18 09:36:17 -0600 | received badge | ● Supporter (source) |
2020-07-18 09:36:15 -0600 | commented answer | Why is elemSize 6 and depth 2 of rgb Mat after CV_BayerBG2BGR ? Great answer, thank you very much for giving your time @berak. I had naively (stupidly) expected the CV_BayerBG2BGR to |
2020-07-18 03:38:34 -0600 | received badge | ● Student (source) |
2020-07-18 03:25:00 -0600 | asked a question | Why is elemSize 6 and depth 2 of rgb Mat after CV_BayerBG2BGR ? Why is elemSize 6 and depth 2 of rgb Mat after CV_BayerBG2BGR ? When using OpenCV RAW to RGB conversion (CV_BayerBG2BGR) |