本文介绍了如何在MATLAB 2016b中使用imresize函数,并详细讲解了将其集成到C语言中的过程,实现了该功能的独立C版本。
Matlab集成的C代码MATLAB2016b-imresize
MATLAB内置函数imresize()的C实现目录开发环境:
编码语言:C语言
集成开发环境(IDE):Microsoft Visual Studio 2017
用法:
```c
out_zoom = imresize(&ori, &out_img_sz_zoom, nearest, true); // Nearest neighborhood, Zoom, Anti-aliasing option: true (should not be working because of zooming)
out_down = imresize(&ori, &out_img_sz_down, nearest, true); // Nearest neighborhood, Down-scaling, Anti-aliasing option: true (should not be working because of nearest option)
```