IMRESIZEN: resize an N-dimensional array

An N-dimensional analog of the imresize() function

Sie verfolgen jetzt diese Einreichung

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')

Zitieren als

Matt J (2026). IMRESIZEN: resize an N-dimensional array (https://de.mathworks.com/matlabcentral/fileexchange/64516-imresizen-resize-an-n-dimensional-array), MATLAB Central File Exchange. Abgerufen .

Kategorien

Mehr zu Read, Write, and Modify Image finden Sie in Help Center und MATLAB Answers

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
1.0.0.0

Edits
Edit title
Description edit

Description edit.
Description edit
Title and summary edit