# JPEG Compression
Jpeg Compression algorithm based on Chapter 7 of book Image and Video Compression for Multimedia Engineering.
The code is for Matlab and its development was part of a university course called Image and Video Codification Systems. This course is in the second year of Audiovisual Systems Engineering Degree at Universitat Pompeu Fabra (Barcelona).
How to use it:
- Download zip or clone the repository to your Desktop.
- Open the unzipped folder in your Matlab current folder directory.
- Drag the example image named ‘kodim14.bmp’ to the Command Window and save its data to the workspace. It should appear the data of the image ‘cdata’ and its colormap.
- Type [jpeg_decoded] = jpeg[cdata] in the Command Window and insert the compression factor you want to use.
- Wait until the process is done and you’ll see the image.
Algorithm constraints:
- The input images have to be in grayscale.
- The size of the image in both rows and columns has to be multiple of 8.
If these two conditions are not met, the behavior of the algorithm will not probably be the expected.
没有合适的资源?快使用搜索试试~ 我知道了~
matlab灰度处理代码-JPEG:Matlab的JPEG压缩算法
共18个文件
m:15个
md:1个
mat:1个
需积分: 16 8 下载量 87 浏览量
2021-05-23
18:33:39
上传
评论
收藏 587KB ZIP 举报
温馨提示
matlab灰色处理代码JPEG压缩 基于《多媒体工程学图像和视频压缩》第7章的Jpeg压缩算法。 该代码是针对Matlab的,其开发是一门名为“图像和视频编码系统”的大学课程的一部分。 本课程是在Pompeu Fabra大学(巴塞罗那)获得视听系统工程学位的第二年。 如何使用它: 下载zip或将存储库克隆到您的桌面。 在您的Matlab当前文件夹目录中打开解压缩的文件夹。 将名为“ kodim14.bmp”的示例图像拖到“命令窗口”,并将其数据保存到工作区。 它应该出现图像“ cdata”的数据及其颜色图。 在命令窗口中键入[jpeg_decoded] = jpeg [cdata],然后插入要使用的压缩系数。 等待该过程完成,您将看到图像。 算法约束: 输入图像必须为灰度。 行和列中图像的大小都必须是8的倍数。 如果不满足这两个条件,则算法的行为可能不会达到预期。
资源详情
资源评论
资源推荐
收起资源包目录
JPEG-master.zip (18个子文件)
JPEG-master
README.md 1KB
jpeg
find_category_DC.m 1KB
code_value.m 822B
code_category_DC.m 1KB
code_category_AC.m 12KB
decode_value.m 929B
find_category_AC.m 1KB
decode_category_AC.m 59KB
jpeg.m 4KB
kodim14.bmp 385KB
izigzag.m 2KB
codifDC.m 1KB
zigzag.m 2KB
matlab.mat 297KB
decodifDC.m 1KB
decode_category_DC.m 3KB
decodifAC.m 1KB
codifAC.m 2KB
共 18 条
- 1
weixin_38519619
- 粉丝: 2
- 资源: 905
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0