在Matlab下降低图像的质量 [英] decreasing the quality of an image under Matlab

查看:141
本文介绍了在Matlab下降低图像的质量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,
我想找到一个简单的方法来操纵图像,以便我可以将其质量从8bit降低到3bit。



什么是最简单的方法来实现呢?
Cheers

解决方案

如果你想线性缩放,只需将每个像素值除以255/7原始图像存储在矩阵I中,让低分辨率图像J = I /(255/7))。



UPDATED:


Greetings, I am trying to find an easy way to manipulate an image so that I can decrease the quality of it from 8bit to 3bit.

What would be the easiest way to achieve this? Cheers

解决方案

If you want to linearly scale it, just divide each pixel value by 255/7 (i.e. if the original image is stored in a matrix I, let the low-res image J = I/(255/7)).

UPDATED: Due to a mistake in my scaling constant.

Here's an example:

这篇关于在Matlab下降低图像的质量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆