iir(filename,f,vara​rgin)

Increases the resolution of an image by interpolation
ダウンロード: 10K
更新 2018/5/21

ライセンスの表示

IIR Increases the size 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);

The screenshot shows the effect of increasing resolution by 3. Original size: 600x402. After: 2400x1608.
(I took the photo myself. No copyright problems).

引用

Francisco de Castro (2024). iir(filename,f,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/21410-iir-filename-f-varargin), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2007a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersImage Filtering and Enhancement についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.2.0.0

change description slightly
Interpolation in two domensions at once.

1.1.0.0

IIR now reads the graphics file directly.
More interpolation methods added
Improved display of grayscale images

1.0.0.0

Better title