当前位置:   article > 正文

matlab 调整矩阵形状,在MATLAB中调整3D矩阵(图像)的大小

matlab 三维图像调整大小

这是我们在kWave工具箱中使用的resize函数。

function mat_rs = resize(varargin)

%RESIZE Resize a matrix.

% DESCRIPTION:

% Resize a matrix to a given size using interp2 (2D) or interp3

% (3D).

% Use interpolation to redivide the [0,1] interval into Nx, Ny, Nz

% voxels, where 0 is the center of first voxel, and 1 is the center

% of the last one.

%

% USAGE:

% mat_rs = resize(mat, new_size)

% mat_rs = resize(mat, new_size, interp_mode)

%

% INPUTS:

% mat - matrix to resize

% new_size - desired matrix size in elements given by [Nx, Ny] in

% 2D and [Nx, Ny, Nz] in 3D. Here Nx is the number of

% elements in the row direction, Ny is the number of

% elements in the column direction, and Nz is the

% number of elements in the depth direction.

%

% OPTIONAL INPUTS:

%

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/579374
推荐阅读
相关标签
  

闽ICP备14008679号