多媒体通信-5-4-2018

多媒体通信-5-4-2018

Main steps in JPEG image

step1. Transform RGB to YUV and subsampe color

step2. DCT on images blocks (DC,AC)

step3. Quantization(low frequency-small step, high frequency-big step)(The quantization step of luminance(亮度) signal is longer than that of chroma signal.)

step4. Zigzag ordering and run-length encoding and DPCM

Zigzag order and Run-length coding on AC coefficients
start:lowest coefficiect
end:highest coefficient
To increase the number of the zeros.
{zeros-to-skip,next non-zero value}(end tag:(0,0))-for AC coefficient
for example{41,0,-2,0,0,0,0,0,5,0,0,0,0,0...} can be represented as {(0,41),(1,-2),(5,5)(0,0)}
DPCM:difference code(差值编码)-for DC coefficient
for example: 150,155,149,152 can be coded as 150,5,-6,3...
Huffman coding ALGORITHM: FREQUENCY-occurrence probability-for DC coefficient
Huffman coding method: the combination of the value from the root to each node.
for example: value:probabilty
1:3/16,2:5/16,3:2/16,4:1/16,5:3/16,6:2/16
start from the value of small probability, finally compare the length of the code.
compression ratio = code_length(uncompression)/code_length(compression)
average code length = add_all(probability*each_code_length.
multiple coding results, but unique decoding and unique average code length.
Entropy Encoding: (size, value):(for nagetive, we use its anti-code)
for example, codes : 150 5 -6-> (8 10010110),(3,101),(3,001)
size is Huffman coded. While value is not Huffman coded.
Extension: TLV->type,length, value
AC Huffman coding: (runlength,value)->runlength=(runlength(4-bit),size(4-bit)); value=(amplitude(8-bit))

step5. Entopy encoding

MODE OF JPEG

Sequential mode: a single order from right to left, from top to bottom

Progressive mode: delivers low quality versions of the image quickly, followed by higher quality passses.

step1: DC + low frequency AC coefficients
step2: higher frequency AC coefficients
step3: highest frequency AC coefficients

posted @ 2018-05-18 18:21 Edge_of_Eternity 阅读(...) 评论(...) 编辑 收藏

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值