压缩工程包 技术资料 人工审核无毒

JPEG压缩matlab源码

所属分类 技术资料
文件大小 57 K
文件格式 压缩文档
累计下载 7 次
分享作者
发布日期

资料详细技术说明

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 软件打开
  • 压缩包内源码可直接在上方在线预览

免费获取积分