Ask Your Question
0

Debayer 16 bit with the MHC algo using CUDA

asked 2016-07-27 07:50:06 -0600

hwh gravatar image

Hi,

With OpenCV 3.1.0 I'm trying to use the cv::cuda::demosaicing function:

cv::cuda::demosaicing(bayered, debayered, cv::cuda::COLOR_BayerGB2BGR_MHT);

The documentation states that:

src Source image (8-bit or 16-bit single channel).

However, at runtime with a 16-bit image I get the errror:

OpenCV Error: Assertion failed (depth == CV_8U) in cv::cuda::demosaicing, file C:\opencv\opencv310\sources\modules\cudaimgproc\src\color.cpp, line 2132

Question: is this a bug or a fault in the documentation?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-07-27 21:44:43 -0600

Tetragramm gravatar image

It looks like the _MHT only supports 8-bit. COLOR_BayerGB2BGR does support 16-bit.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-07-27 07:50:06 -0600

Seen: 827 times

Last updated: Jul 27 '16