HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pbmnoise — Generate white noise. More information: <https://netpbm.sourceforge.net/doc/pbmnoise.html>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandpbmnoiseclimoreinformationwhitenoisegenerate

Problem

How to use the pbmnoise command: Generate white noise. More information: <https://netpbm.sourceforge.net/doc/pbmnoise.html>.

Solution

pbmnoise — Generate white noise. More information: <https://netpbm.sourceforge.net/doc/pbmnoise.html>.

Generate a PGM image containing white noise:
pbmnoise {{width}} {{height}} > {{path/to/output.pbm}}


Specify the seed for the pseudo-random number generator:
pbmnoise {{width}} {{height}} -randomseed {{value}} > {{path/to/output.pbm}}


Specify the desired rate of white to black pixels:
pbmnoise {{width}} {{height}} -ratio {{1/3}} > {{path/to/output.pbm}}

Code Snippets

Generate a PGM image containing white noise

pbmnoise {{width}} {{height}} > {{path/to/output.pbm}}

Specify the seed for the pseudo-random number generator

pbmnoise {{width}} {{height}} -randomseed {{value}} > {{path/to/output.pbm}}

Specify the desired rate of white to black pixels

pbmnoise {{width}} {{height}} -ratio {{1/3}} > {{path/to/output.pbm}}

Context

tldr-pages: common/pbmnoise

Revisions (0)

No revisions yet.