M-File Help: pnmfilt View code for pnmfilt

pnmfilt

Pipe image through PNM utility

out = pnmfilt(cmd) runs the external program given by the string cmd and the output (assumed to be PNM format) is returned as out.

out = pnmfilt(cmd, im) pipes the image im through the external program given by the string cmd and the output is returned as out. The external program must accept and return images in PNM format.

Examples

im = pnmfilt('ppmforge -cloud');
im = pnmfilt('pnmrotate 30', lena);

Notes

See also

pgmfilt, iread


 

© 1990-2012 Peter Corke.