📄 pgmfilt.m
字号:
%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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -