matlab使用插值增加图像分辨率

收录时间:2014-04-21
资源分类:Matlab 工具:MATLAB 7.4 (R2007a)

该程序使用插值增加图像分辨率。

B= IIR(inputfile,f)返回了存储在inputfile里面的图像,且分辨率得到了增强。图像格式必须是有效的图像格式,如jpg, gif, tiff等。它可以是灰度或彩色图像。

Increase Image Resolution

IIR Increases the resolution of an image by interpolation

B= IIR(inputfile,f) returns the image stored in file 'inputfile' with resolution increased by factor f in both dimensions. 'filename' must be a valid graphic file (jpg, gif, tiff, etc.). It can be grayscale or color.

 

Parameter 'f' is the size increase ratio, so to increase by 50%

use f= 1.5, to double size (in each dimension) use f= 2.

 

Additional parameters:

 B= IIR(A,f,'Display','off') eliminates display of both images, the original and the modified. Deafult 'on'

 

B= IIR(A,f,'Method',method) Allows to choose between five methods of interpolation: linear, spline, pchip, cubic or v5cubic. 'method' must be a string character. Default 'linear'

 

Example:

B= iir('myimage.jpg',2,'Method','cubic');

 

The screenshot shows the effect of increasing resolution by 3. Original size: 600x402. After: 2400x1608.

(I took the photo myself. No copyright problems).

文件下载列表
iir.zip (1.87KB)  
附件内容(只显示2中的1个)
iir.m  
标签: 图像分辨率 插值 
更多

目前尚无评论

用户反馈   关于我们
Copyright (©) ZHIHUISHI.COM 2013 All Rights Reserved.
京ICP备18060134号-3