简体   繁体   English

GNU Octave中的矩阵调整大小功能

[英]Matrix resizing function in GNU Octave

There is a function called as resizem in MATLAB which resize the input matrix to the specified size using some interpolation method. MATLAB中有一个称为resizem的函数,该函数使用某种插值方法将输入矩阵的大小调整为指定的大小。

Anybody knows any function in OCTAVE which do the same matrix resizing? 有人知道OCTAVE中有哪些函数可以调整相同的矩阵大小吗? There is a function resize in OCTAVE but its doing some thing else. OCTAVE中有一个函数resize ,但它还有其他作用。

The function resizem belongs to the Matlab mapping toolbox. 函数resizem属于Matlab映射工具箱。 It is not part of the core Matlab so you will not find it in Octave either. 它不是核心Matlab的一部分,因此您也不会在Octave中找到它。 You would find it the Octave mapping package (if it was implemented there which is not yet). 您会发现它是Octave映射包(如果尚未在其中实现)。

However, at first glance it seems to be simple to replace it with handling interp2 yourself, or use the image package imresize as a drop-in replacement. 但是,乍一看,用自己处理interp2替换它似乎很简单,或者使用imresize图像包作为imresize的替换。 That's all dependent on how you are using resizem . 这完全取决于您如何使用resizem

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM