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

ppmspread — Displace the pixels in a PPM image by a randomized amount. More information: <https://netpbm.sourcef

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

Problem

How to use the ppmspread command: Displace the pixels in a PPM image by a randomized amount. More information: <https://netpbm.sourceforge.net/doc/ppmspread.html>.

Solution

ppmspread — Displace the pixels in a PPM image by a randomized amount. More information: <https://netpbm.sourceforge.net/doc/ppmspread.html>.

Displace the pixels in a PPM image by a randomized amount that is at most a:
ppmspread {{a}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}


Specify a seed to a the pseudo-random number generator:
ppmspread {{a}} {{path/to/input_file.ppm}} {{[-r|-randomseed]}} {{seed}} > {{path/to/output_file.ppm}}

Code Snippets

Displace the pixels in a PPM image by a randomized amount that is at most `a`

ppmspread {{a}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}

Specify a seed to a the pseudo-random number generator

ppmspread {{a}} {{path/to/input_file.ppm}} {{[-r|-randomseed]}} {{seed}} > {{path/to/output_file.ppm}}

Context

tldr-pages: common/ppmspread

Revisions (0)

No revisions yet.