IMRESIZEN: resize an N-dimensional array

版本 1.0.0.0 (1.4 KB) 作者: Matt J
An N-dimensional analog of the imresize() function
277.0 次下载
更新时间 2017/9/24

查看许可证

This file is an N-dimensional analog of the imresize() function from the Image Processing Toolbox. Namely, it allows one to perform a stretch or contraction of an N-dimensional image by some factor, or a different factor along each dimension. No toolboxes are required to use it, but it doesn't handle color images.

USAGE:

Y=imresizen(X,scaling,extrapMethod)

IN:

X: n-dimensional input array (single or double)
scaling: scaling factor(s) as scalar or n-vector. Scalings along singleton dimensions of X are always ignored.
extrapMethod: extrapolation method (same options as for griddedInterpolant). Default is linear interpolation.

OUT:

Y: resized array

EXAMPLES:

img4D=rand(30,20,10,40);

(1) imresizen(img4D,2);
(2) imresizen(img4D,1./[3,2,1,4]);
(3) imresizen(___, 'cubic')

引用格式

Matt J (2024). IMRESIZEN: resize an N-dimensional array (https://www.mathworks.com/matlabcentral/fileexchange/64516-imresizen-resize-an-n-dimensional-array), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2017a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Read, Write, and Modify Image 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

Edits
Edit title
Description edit

Description edit.
Description edit
Title and summary edit