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

CodePudding user response:

refer to the second floor lark studio 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

Could you tell me the color space conversion should after the integer?

CodePudding user response:

reference qq_40348659 reply: 3/f
Quote: refer to the second floor lark studio 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

Could you tell me the color space conversion should after the integer?

According to the needs of storage and application, a common format is need to take the whole


CodePudding user response:

reference 4 floor zgl7903 response:
Quote: reference qq_40348659 reply: 3/f

Quote: refer to the second floor lark studio 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

Could you tell me the color space conversion should after the integer?

According to the needs of storage and application, a common format is need to take the whole



Is rounded forensics, is in the process of compression to integer

CodePudding user response:

reference 4 floor zgl7903 response:
Quote: reference qq_40348659 reply: 3/f

Quote: refer to the second floor lark studio 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

Could you tell me the color space conversion should after the integer?

According to the needs of storage and application, a common format is need to take the whole



JPEG compression
  • Related