You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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).
Cite As
Francisco de Castro (2026). iir(filename,f,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/21410-iir-filename-f-varargin), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.2.0.0 (2.69 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
