如何在MATLAB中更改图像的DPI [英] how to change DPI of an image in MATLAB

查看:1888
本文介绍了如何在MATLAB中更改图像的DPI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是将图像分辨率从300 dpi更改为200 dpi或600 dpi的问题. 我正在使用matlab,但是我该怎么办.所以对于我来说,我使用的是imresize函数,可以对图像进行下采样和上采样.

Here is the problem to change an image resolution from 300 dpi to 200 dpi or 600 dpi. i am using matlab but how can i be. so for i have use the imresize function which down sample the image and up sample it.

 imresize(image, scale ,interpolation). 

如何对图像进行下采样以降低其质量.这样我就可以检查原始图像和向下采样的图像之间的差异.

how can down sample the image to reduce its quality too. so that i may check the difference between the original image and the down sampled image.

j= imresize(I,0.2,'nearest');

其中I是原始图像,j是向下采样的图像.是在改变图像的dpi吗?

where I is the original image and j is the down sampled image. is this changing the dpi of an image.

推荐答案

每英寸点数(DPI)imresize完成的调整大小类型无关.实际上,更改DPI甚至不需要更改实际的图像数据,只需元数据 -属性或标签. DPI为您提供了从像素->英寸(打印尺寸)开始所需的信息.

Dots per inch (DPI) has nothing to do with the type of resizing done by imresize. In fact, changing the DPI does not even require changing the actual image data, just the metadata -- a property or label. DPI gives you the information needed to go from pixels -> inches (print size).

这篇关于如何在MATLAB中更改图像的DPI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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