pgmnoise
create a PGM image filled with random grayscale pixels
TLDR
SYNOPSIS
pgmnoise [options] width height
DESCRIPTION
pgmnoise creates a portable graymap (PGM) image where each pixel is independently assigned a uniformly distributed random gray value between 0 and the maximum value. The output is written to standard output in PGM format.The tool is useful for testing image processing pipelines, creating noise textures, or generating random patterns that can be piped into other Netpbm tools.
PARAMETERS
width
Image width in pixels.height
Image height in pixels.-randomseed n
Seed for the random number generator, allowing reproducible output.-maxval n
Maximum gray value for pixels. Defaults to the PGM compile-time maximum (typically 255 or 65535).
CAVEATS
Uses uniform random distribution only. For Gaussian or other noise types, use pamaddnoise or combine with other tools. Output goes to stdout and must be redirected. Part of the Netpbm toolkit.
HISTORY
pgmnoise is part of Netpbm, the graphics toolkit originally created by Jef Poskanzer in the late 1980s and maintained by Bryan Henderson since 2000.
