📄 ppmfilt.m
字号:
%PPMFILT Pipe image through PPM utility%% f = ppmfilt(r, g, b, cmd)%% Pipe color image through a Unix filter program. Input and output % image formats are PPM.%% SEE ALSO: xv loadppm saveppm%% Copyright (c) Peter Corke, 1999 Machine Vision Toolbox for Matlab% 1999 Peter Corkefunction [r, g, b] = ppmfilt(r, g, b, cmd) % MATLAB doesn't support pipes, so it all has to be done via temp files... % make up two file names fname = ['/tmp/xv' num2str(rand)]; fname2 = ['/tmp/xv' num2str(rand)]; saveppm(fname, r, g, b); unix([cmd ' < ' fname ' > ' fname2]); [r, g, b] = loadppm(fname2); unix(['/bin/rm ' fname ' ' fname2]);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -