pgmfilt.m
来自「来自澳大利亚Qeensland大学的计算机视觉Matlab工具箱。 This 」· M 代码 · 共 26 行
M
26 行
%PGMFILT Pipe image through PGM utility%% f = pgmfilt(im, cmd)%% Pipe image through a Unix filter program. Input and output image % formats are PGM.%% SEE ALSO: xv%% Copyright (c) Peter Corke, 1999 Machine Vision Toolbox for Matlab% 1996 Peter Corkefunction im2 = pgmfilt(im, 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)]; savepgm(fname, im); unix([cmd ' < ' fname ' > ' fname2]); im2 = loadpgm(fname2); unix(['/bin/rm ' fname ' ' fname2]);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?