image_scale.m

来自「介绍了傅立叶变换的基本原理」· M 代码 · 共 15 行

M
15
字号
function output = image_scale(input,lower,upper)
> USAGE : output = image_scale(input,lower,upper)
>
> input = image to be scaled
> lower,upper = new limits to impose on image
> output = newly-scaled image
>
> Adam Wilmer, 25-4-02

iu = max(max(input)); il = min(min(input));
output = ((upper-lower)*((input-il)/(iu-il)))+lower;



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?