mirror of
https://github.com/opencv/opencv.git
synced 2026-09-11 04:43:22 -05:00
cvtColor's @param src promised 8U, 16U and 32F unconditionally, but the accepted depths depend on the conversion code: CV_16U is rejected by COLOR_BGR2HSV, COLOR_BGR2Lab, COLOR_BGR2Luv and the packed 16-bit codes, while COLOR_BGR2GRAY, COLOR_BGR2XYZ, COLOR_BGR2YUV and RGB<->RGB accept it. That is what #26447 reported. State it on @param src and point at the [8U]/[16U]/[32F] markers already documented on ColorConversionCodes. The @note only said the source "must be of an appropriate type", which is now redundant, so drop it from both functions. demosaicing has the same problem: the Variable Number of Gradients codes accept 8-bit input only, while the other Bayer codes also accept 16-bit. Fixes #26447