opencv rgb转YUV公式

 

https://docs.opencv.org/master/de/d25/imgproc_color_conversions.html#color_convert_rgb_ycrcb

 

 

 

RGB ↔ YCrCb JPEG (or YCC)

 

Y0.299R+0.587G+0.114B

 

 

Cr(RY)0.713+delta

 

 

Cb(BY)0.564+delta

 

 

RY+1.403(Crdelta)

 

 

GY0.714(Crdelta)0.344(Cbdelta)

 

 

BY+1.773(Cbdelta)

 

where

 

delta=⎧⎩⎨⎪⎪128327680.5for 8-bit imagesfor 16-bit imagesfor floating-point images

 

Y, Cr, and Cb cover the whole value range.

 

posted on 2020-08-14 11:04  Maddock  阅读(1144)  评论(0编辑  收藏  举报

导航