提供《jpeg压缩matlab代码 代码jpeg压缩matlab 代码》完整技术工程技术资料下载(归档大小 121 K),包含相关硬件原理图参考、开发文档或源代码工程。
JPEG压缩matlab源码
资料详细技术说明
JPEG压缩解压缩的matlab源代码:
1) take an image (2D matrix) and devide it to 8x8 matrices
2) for each matrix (8x8) use the DCT conversion (from the signal
processing toolbox). you will get an (8x8) matrix as an answer
3) build an 8x8 matrix, which is the sum off all the matrices, such
that sum_matrix = A + B + C + ...
4) sort elements of the 8x8 matrix from the highest to the smallest
and get the indices list.
5) sum the last matrix with part of the elements which have the
higher coefficients, until you have a sufficient ratio (lets say
80%). for example :
idx = sort( sum_matrix (:) );
part_of_energy = sum_matrix(idx(1:20));
all_energy = sum_matrix(:);
ratio = part_of_energy/all_energy;
6) save the partial list of indices, number of matrices (rows,lines)
and from each matrix from step (2) save ONLY these coefficients
(remember the order you save them)
相关技术资料推荐
下载与解压说明
下载积分规则
- 本资源下载仅需 2 积分
- 24 小时内重复下载免扣积分
- VIP 会员享专属免积分高速通道
文件解压指南
- 推荐使用 7-Zip 或新版 WinRAR 解压
- 原理图与 PCB 请使用对应 EDA 软件打开
- 压缩包内源码可直接在上方在线预览
免费获取积分
- 新用户注册即赠送 10 积分
- 上传分享工程资料可获得持续积分奖励
- 查看积分规则与会员权益 →