Linux command
pnmnoise 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Create grayscale noise image
pgmnoise [width] [height] > [noise.pgm]
Build color noise
rgb3toppm <(pgmnoise 256 256) <(pgmnoise 256 256) <(pgmnoise 256 256) > noise.ppm
Add noise to an existing image
pamaddnoise -type=gaussian -lsigma=0.1 [image.pnm] > [noisy.pnm]
说明
There is no standalone pnmnoise program in modern Netpbm. The name is sometimes used loosely to refer to Netpbm's family of noise generators. Use pgmnoise to generate a grayscale PGM of white noise, pbmnoise for a PBM (bitmap) of random black/white pixels, and combine three pgmnoise outputs with rgb3toppm to create a color PPM noise image. pamaddnoise adds several noise distributions (gaussian, impulse, multiplicative-gaussian, etc.) to an existing image.
参数
- width
- Image width in pixels.
- height
- Image height in pixels.
- -randomseed _n_
- Seed the pseudo-random number generator for reproducible output.
FAQ
What is the pnmnoise command used for?
There is no standalone pnmnoise program in modern Netpbm. The name is sometimes used loosely to refer to Netpbm's family of noise generators. Use pgmnoise to generate a grayscale PGM of white noise, pbmnoise for a PBM (bitmap) of random black/white pixels, and combine three pgmnoise outputs with rgb3toppm to create a color PPM noise image. pamaddnoise adds several noise distributions (gaussian, impulse, multiplicative-gaussian, etc.) to an existing image.
How do I run a basic pnmnoise example?
Run `pgmnoise [width] [height] > [noise.pgm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does width do in pnmnoise?
Image width in pixels.