您现在的位置是:首页 > 源码 > JPEG压缩matlab源码
推荐星级:
  • 1
  • 2
  • 3
  • 4
  • 5

JPEG压缩matlab源码

更新时间:2011-08-29 12:27:09 大小:57K 上传用户:明空查看TA发布的资源 标签:matlabJPEG压缩 下载积分:2分 评价赚积分 (如何评价?) 打赏 收藏 评论(0) 举报

资料介绍

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)

部分文件列表

文件名大小
TEMP/1KB
TEMP/DownLoad/1KB
TEMP/DownLoad/University/1KB
TEMP/DownLoad/University/Image Processing/1KB
TEMP/DownLoad/University/Image Processing/0.tif16KB
TEMP/DownLoad/University/Image Processing/1.tif16KB
TEMP/DownLoad/University/Image Processing/2.tif4KB
TEMP/DownLoad/University/Image Processing/3.tif3KB
TEMP/DownLoad/University/Image Processing/4.tif3KB
TEMP/DownLoad/University/Image Processing/5.tif2KB
TEMP/DownLoad/University/Image Processing/6.tif2KB
...

全部评论(0)

暂无评论

上传资源 上传优质资源有赏金

  • 打赏
  • 30日榜单

推荐下载