ppmfilt.m

来自「machine vision 工具箱」· M 代码 · 共 26 行

M
26
字号
%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 + =
减小字号Ctrl + -
显示快捷键?