这里是一个以8*8的图来作为测试的,测试也是按照1层DWT变化得到的;作者是在实际调试过程中记录下这些数据也说明了一个小波变化的真实过程。
下面是分析过程:
Input data after signed and YCC is:
Even Odd
Line 0:
D8 ff e6 ff e6 ff eb ff---e1 ff e6 ff e9 ff ed ff
Line 1:
D8 ff dd ff 06 00 06 00---dd ff f7 ff 06 00 06 00
Line 2:
D3 ff dd ff 7f 00 7f 00---d8 ff f7 ff 7f 00 7f 00
After vertical lift:
Even Odd
Line 1:
03 00 fc ff d4 ff d1 ff---01 00 09 00 d2 ff d0 ff
Line 0:
d9 ff e5 ff db ff df ff---e1 ff e8 ff de ff e1 ff
After horizontal lift:
Even Odd
Line 0:
Da ff e8 ff dd ff e0 ff---02 00 08 00 01 00 02 00
Push even into LL, and push odd into HL
Input new line:
Even Odd
Line 3:
D3 ff dd ff 7f 00 79 00---d8 ff f7 ff 79 00 79 00
Input new line:
Even Odd
Line 4:
D1 ff e1 ff 7f 00 79 00---d6 ff f7 ff 79 00 e6 ff
Do Vertical lift:
Even Odd
Line 3:
01 00 fe ff 00 00 fd ff---01 00 00 00 fd ff 47 00
Do Vertical lift:
Line 2:
d4 ff dc ff 74 00 73 00---d9 ff f9 ff 73 00 85 00
Do horizontal lift:
Line 2:
Even Odd
d5 ff d1 ff 68 00 78 00---01 00 d1 ff 00 00 12 00
push even into LL and push odd into HL
line 1:
04 00 05 00 dc ff d1 ff---02 00 21 00 00 00 ff ff
Input new line:
Even Odd
Line 5:
D1 ff e1 ff e6 ff e6 ff---d9 ff a0 ff e6 ff e6 ff
New line:
Even Odd
Line 6:
D6 ff a0 ff 3f 00 d9 ff---dc ff 0c 00 d9 ff 58 00
Do vertical lift:
Even Odd
Line 5:
fe ff 21 00 87 ff bd ff---00 00 9f ff bd ff c7 ff
Do Vertical lift:
Line 4:
d1 ff e9 ff 61 00 68 00---d6 ff df ff 68 00 ea ff
Do Horizontal lift:
Even Odd
Line 4
ce ff d6 ff 51 00 4a 00---f9 ff ba ff 04 00 82 ff
push into even into LL and push Odd into HL
Line 3:
02 00 ff ff 00 00 0f 00---02 00 01 00 ff ff 4a 00
Push even into LH and push odd into HH
Input new line:
Line 7:
d7 ff 0c 00 e6 ff 79 00---a0 ff 65 00 79 00 d9 ff
Do vertical lift:
Line 7:
05 00 51 00 9e ff 68 00---b6 ff 82 00 8b 00 ec ff
Do vertical lift:
Line 6:
d7 ff bd ff 08 00 e2 ff---ca ff 14 00 eb ff 45 00
Do horizontal lift:
Line 6:
d7 ff ca ff 12 00 f8 ff---00 00 32 00 f6 ff 63 00
Line 5:
f7 ff 10 00 81 ff c6 ff---f1 ff cb ff 1b 00 0a 00
Line 7:
cb ff 57 00 e3 ff 6b 00---8b ff 8b 00 88 00 84 ff
下面是综合的过程部分:
Do horizontal lift:
Pull line 0:
Even
Da ff e8 ff dd ff e0 ff---02 00 08 00 01 00 02 00
After horizontal lift:
Line 0:
d9 ff e5 ff db ff df ff---e1 ff e8 ff de ff e1 ff
Pull line 1:
04 00 05 00 dc ff d1 ff---02 00 21 00 00 00 ff ff
After horizontal lift:
Line 1:
03 00 fc ff d4 ff d1 ff---01 00 09 00 d2 ff d0 ff
After vertical lift:
Line 0:
d8 ff e6 ff e6 ff eb ff--- e1 ff e6 ff e9 ff ed ff
Pull Line:
Line 2:
d5 ff d1 ff 68 00 78 00---01 00 d1 ff 00 00 12 00
After horizontal lift:
Line 2:
d4 ff dc ff 74 00 73 00--- d9 ff f9 ff 73 00 85 00
Pull line 3:
02 00 ff ff 00 00 0f 00--- 02 00 01 00 ff ff 4a 00
After horizontal lift:
Line 3:
01 00 fe ff 00 00 fd ff--- 01 00 00 00 fd ff 47 00
After vertical lift:
Line 2:
d3 ff dd ff 7f 00 7f 00--- d8 ff f7 ff 7f 00 7f 00
Line 1:
d8 ff dd ff 06 00 06 00--- dd ff f7 ff 06 00 06 00
Line 0 output:
d8 ff e1 ff e6 ff e6 ff e6 ff e9 ff eb ff ed ff