资源简介
提供了详细的Matlab编解码过程和程序,包括图片格式转换,零偏置转化,DCT变换,量化,AC系数编码,Z扫描,DC系数编码,JPEG解码,DCT反变换,图像重构等全部函数和实现过程等
代码片段和文件信息
function [ row_nozeroes ] = check_coeff( at)
%UNtitleD2 Summary of this function goes here
% Detailed explanation goes here
AC_coeff=[0001100101111010111100011111000111111011011111111100000101111111110000011;
11001101111110011111101101111111011011111111100001001111111110000101111111111000011011111111100001111111111110001000;
11100111110011111110111111111110100111111111000100111111111100010101111111110001011111111111000110011111111100011011111111110001110;
1110101111101111111111101011111111110001111111111111001000011111111100100011111111110010010111111111001001111111111100101001111111110010101;
111011111111100011111111100101101111111110010111111111111001100011111111100110011111111110011010111111111001101111111111100111001111111110011101;
11110101111111011111111111100111101111111110011111111111111010000011111111101000011111111110100010111111111010001111111111101001001111111110100101;
111101111111111011011111111101001101111111110100111111111111010100011111111101010011111111110101010111111111010101111111111101011001111111110101101;
1111101011111111011111111111101011101111111110101111111111111011000011111111101100011111111110110010111111111011001111111111101101001111111110110101;
11111100011111111100000011111111101101101111111110110111111111111011100011111111101110011111111110111010111111111011101111111111101111001111111110111101;
111111001111111111011111011111111101111111111111111000000111111111100000111111111110000101111111111000011111111111100010011111111110001011111111111000110;
111111010111111111100011111111111110010001111111111001001111111111100101011111111110010111111111111001100111111111100110111111111110011101111111111001111;
1111111001111111111101000011111111110100011111111111010010111111111101001111111111110101001111111111010101111111111101011011111111110101111111111111011000;
1111111010111111111101100111111111110110101111111111011011111111111101110011111111110111011111111111011110111111111101111111111111111000001111111111100001;
11111111000111111111110001011111111111000111111111111100100111111111110010111111111111001101111111111100111111111111110100011111111111010011111111111101010;
1111111111101011111111111110110011111111111011011111111111101110111111111110111111111111111100001111111111110001111111111111001011111111111100111111111111110100;
1111111111110101111111111111011011111111111101111111111111111000111111111111100111111111111110101111111111111011111111111111110011111111111111011111111111111110];
DC_coeff=[0261430621262545101022204640948190163823276665534131070];
s=0;j=0;
for i=length(a):-1:1
s=s+a(i)*2^j;
j=j+1;
end
zeroes=-1;
if (t==0)
for i=1:1:length(DC_coeff)
if (DC_coeff(i)==s)
row_no=i-1;
break;
else
row_no=-1
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-05-20 07:24 JPEG-image-compression-master\
文件 593 2016-05-20 07:24 JPEG-image-compression-master\JPEG.m
文件 114 2016-05-20 07:24 JPEG-image-compression-master\README.md
文件 3432 2016-05-20 07:24 JPEG-image-compression-master\check_coeff.m
文件 303 2016-05-20 07:24 JPEG-image-compression-master\dec_to_bin.m
文件 1940 2016-05-20 07:24 JPEG-image-compression-master\decode.m
文件 2406 2016-05-20 07:24 JPEG-image-compression-master\discrete_cosine.m
文件 958 2016-05-20 07:24 JPEG-image-compression-master\encode.m
文件 936 2016-05-20 07:24 JPEG-image-compression-master\insert_to_array.m
文件 665 2016-05-20 07:24 JPEG-image-compression-master\quantise.m
文件 457 2016-05-20 07:24 JPEG-image-compression-master\row_col.m
文件 2011 2016-05-20 07:24 JPEG-image-compression-master\zig_zag.m
- 上一篇:混合整数非线性规划
- 下一篇:惯性、GPS、地磁组合导航仿真程序
评论
共有 条评论