diff --git a/modules/gpu/include/opencv2/gpu/device/detail/color_detail.hpp b/modules/gpu/include/opencv2/gpu/device/detail/color_detail.hpp index f938b90801..a8952f1e61 100644 --- a/modules/gpu/include/opencv2/gpu/device/detail/color_detail.hpp +++ b/modules/gpu/include/opencv2/gpu/device/detail/color_detail.hpp @@ -1821,7 +1821,7 @@ namespace cv { namespace gpu { namespace device dst.x = saturate_cast(dstf.x * 2.55f); dst.y = saturate_cast(dstf.y * 0.72033898305084743f + 96.525423728813564f); - dst.z = saturate_cast(dstf.z * 0.99609375f + 139.453125f); + dst.z = saturate_cast(dstf.z * 0.9732824427480916f + 136.259541984732824f); } template struct RGB2Luv; @@ -1915,7 +1915,7 @@ namespace cv { namespace gpu { namespace device srcf.x = src.x * (100.f / 255.f); srcf.y = src.y * 1.388235294117647f - 134.f; - srcf.z = src.z * 1.003921568627451f - 140.f; + srcf.z = src.z * 1.027450980392157f - 140.f; Luv2RGBConvert_f(srcf, dstf);