信息论作业全Word文件下载.docx
- 文档编号:21096206
- 上传时间:2023-01-27
- 格式:DOCX
- 页数:19
- 大小:80.01KB
信息论作业全Word文件下载.docx
《信息论作业全Word文件下载.docx》由会员分享,可在线阅读,更多相关《信息论作业全Word文件下载.docx(19页珍藏版)》请在冰豆网上搜索。
%对256个灰度层次的信源数据进行编码
map1=huffman(double(y1))
%对16个灰度层次的信源数据进行编码
y5=zeros(1,16);
j=1;
fori=1:
ify2(i)>
0;
y5(j)=y2(i);
j=j+1;
map2=huffman(double(y5))
2.运行结果:
(1)计算原图像的熵为:
h=7.3482
(2)所显示的图像:
(3)各图像中各个灰度层次的概率分布图
(4)16位(后四位被屏蔽掉的数据)霍夫曼编码:
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'
100100001'
100101'
000'
1111'
0010'
110'
101'
010'
011'
0011'
1000'
1110'
10011'
1001001'
10010001'
100100000'
(5)256位霍夫曼编码:
0
1
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
11110100011001100000000000000000000000000000000000000000000000000'
11110100011001100000000000000000000000000000000000000000000000001'
1111010001100110000000000000000000000000000000000000000000000001'
111101000110011000000000000000000000000000000000000000000000001'
11110100011001100000000000000000000000000000000000000000000001'
1111010001100110000000000000000000000000000000000000000000001'
111101000110011000000000000000000000000000000000000000000001'
11110100011001100000000000000000000000000000000000000000001'
1111010001100110000000000000000000000000000000000000000001'
111101000110011000000000000000000000000000000000000000001'
11110100011001100000000000000000000000000000000000000001'
1111010001100110000000000000000000000000000000000000001'
111101000110011000000000000000000000000000000000000001'
11110100011001100000000000000000000000000000000000001'
1111010001100110000000000000000000000000000000000001'
111101000110011000000000000000000000000000000000001'
11110100011001100000000000000000000000000000000001'
1111010001100110000000000000000000000000000000001'
111101000110011000000000000000000000000000000001'
11110100011001100000000000000000000000000000001'
1111010001100110000000000000000000000000000001'
111101000110011000000000000000000000000000001'
11110100011001100000000000000000000000000001'
1111010001100110000000000000000000000000001'
111101000110011000000000000000000000000001'
11110100011001100000000000000000000000001'
1111010001100110000000000000000000000001'
111101000110011000000000000000000000001'
11110100011001100000000000000000000001'
1111010001100110000000000000000000001'
111101000110011000000000000000000001'
11110100011001101'
1111010001100111'
1111010001100100'
11110100011011'
1111010001110'
11110100011110'
0000110011110'
11110100010'
11010110001'
01111011011'
0000110010'
0010010101'
100101111'
110101101'
001101000'
10101011'
00000110'
01000110'
01111010'
1100011'
0001100'
0100100'
0100001'
0110001'
0101101'
0100111'
0011000'
0010110'
0010100'
1111100'
1101100'
1010110'
01111111'
01010010'
01001010'
00010001'
00001010'
00000011'
11110011'
00000010'
11100100'
11010010'
11001100'
11010000'
11100111'
11100101'
11010111'
11001011'
11111011'
11110110'
00011110'
00000111'
11110010'
00010110'
11111100'
11111101'
11100110'
00001101'
00001011'
11111010'
00111100'
00110011'
00100100'
01100101'
00110010'
01010000'
01101100'
01001100'
01110100'
1011011'
1101101'
0000000'
0101111'
0110111'
0010101'
0001101'
0001010'
1110001'
1001110'
1010111'
1000010'
1000011'
01101000'
01010011'
01101101'
1001010'
1010001'
1011010'
1001111'
1011111'
1100100'
1110110'
1100111'
1111111'
1110100'
0000100'
0010111'
0011011'
0111110'
100011'
100110'
0111001'
0011100'
0010000'
1110111'
0000010'
1111000'
0000111'
0010001'
0100010'
0101100'
0110101'
100100'
100010'
0111011'
0101010'
0101011'
0001110'
0011111'
0010011'
0111000'
0110011'
0111100'
101001'
100000'
0110000'
0011101'
0001001'
1101110'
1101010'
1010000'
01110101'
1010100'
01000111'
01111110'
01101001'
00111101'
00010000'
00010111'
01010001'
1011000'
01100100'
01000000'
01011100'
01001011'
00110101'
00011111'
11100001'
11000010'
11000000'
10010110'
010011010'
001101001'
010111011'
010011011'
010000010'
001001011'
10110010'
10110011'
10111100'
10111000'
10111011'
11101011'
11011111'
11000011'
11010001'
11000100'
11001010'
11000001'
10111010'
11000101'
10101010'
10111101'
11010011'
10111001'
11011110'
11101010'
11110101'
11110111'
11100000'
11001101'
011110111'
010111010'
000011000'
111101001'
100101110'
0100000110'
0111101100'
0010010100'
1111010000'
1101011001'
01111011010'
01000001111'
00001100110'
010000011100'
000011001110'
010000011101'
110101100001'
110101100000'
11110100011111'
0000110011111'
11110100011000'
1111010001100101'
11110100011001100000000000000000001'
1111010001101010'
1111010001100110000000000000000001'
1111010001101011'
1111010001101000'
111101000110011000000000000000001'
11110100011001100000000000000001'
1111010001100110000000000000001'
111101000110011000000000000001'
11110100011001100000000000001'
1111010001100110000000000001'
111101000110011000000000001'
1111010001101001'
11110100011001100000000001'
1111010001100110000000001'
111101000110011000000001'
11110100011001100000001'
1111010001100110000001'
111101000110011000001'
11110100011001100001'
1111010001100110001'
111101000110011001'
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 信息论 作业