Home > Software engineering > Out call rgb2ycbcr function in matlab is smaller than formula to calculate the 16 with ycbcr2rgb com
Out call rgb2ycbcr function in matlab is smaller than formula to calculate the 16 with ycbcr2rgb com
Time:09-19
Is the most useful matlab calculate formula instead of calling rgb2ycbcr and ycbcr2rgb and why ycbcr2rgb output is a??????? I=imread (' C: \ Users \ WHM \ Desktop \ test \ ucid2 \ ucid00005 tif '); I=double (I); YCBCR=rgb2ycbcr (I); RGB=ycbcr2rgb (YCBCR);
CodePudding user response:
http://www.ilovematlab.cn/thread-106551-1-1.html
CodePudding user response:
YUV and YCbCr conversion formula is not the same,
* Analog R * Y=0.299 + 0.114 + 0.587 G B * U R=0.147-0.289 G + 0.436 B * V R=0.615 to 0.515 G - 0.100 B * the ITU - R BT. 601 * Y? ˉ R=0.257 * '+ 0.504 * G + 0.098 * B' + 16 * Cb 'R=0.148 * 0.291 * G' + 0.439 * B + 128 * Cr 'R=0.439 * 0.368 * G - 0.071 * B + 128