pbmnoise, pgmhist, pgmkernel, pgmnoise, pgmramp, pgmtexture: add pages; ppmhist: modify page (#12202)

pull/23/head
Juri Dispan 2024-02-06 15:15:34 +01:00 committed by GitHub
parent 0d32539122
commit 5bdf79a65d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 109 additions and 2 deletions

16
pages/common/pbmnoise.md Normal file
View File

@ -0,0 +1,16 @@
# 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}}`

25
pages/common/pgmhist.md Normal file
View File

@ -0,0 +1,25 @@
# pgmhist
> Print a histogram of the values present in a PGM image.
> See also: `ppmhist`.
> More information: <https://netpbm.sourceforge.net/doc/pgmhist.html>.
- Display the histogram for human reading:
`pgmhist {{path/to/image.pgm}}`
- Display the median grey value:
`pgmhist -median {{path/to/image.pgm}}`
- Display four quartile grey value:
`pgmhist -quartile {{path/to/image.pgm}}`
- Report the existence of invalid grey values:
`pgmhist -forensic {{path/to/image.pgm}}`
- Display machine-readable output:
`pgmhist -machine {{path/to/image.pgm}}`

17
pages/common/pgmkernel.md Normal file
View File

@ -0,0 +1,17 @@
# pgmkernel
> Generate a convolution kernel to be used with `pnmconvol`.
> See also: `pnmconvol`.
> More information: <https://netpbm.sourceforge.net/doc/pgmkernel.html>.
- Generate a convolution kernel:
`pgmkernel {{width}} {{height}} > {{path/to/output.pgm}}`
- Generate a quadratic convolution kernel:
`pgmkernel {{size}} > {{path/to/output.pgm}}`
- Specify the weight of the center in the generated kernel:
`pgmkernel -weight {{value}} {{width}} {{height}} > {{path/to/output.pgm}}`

12
pages/common/pgmnoise.md Normal file
View File

@ -0,0 +1,12 @@
# pgmnoise
> Generate white noise.
> More information: <https://netpbm.sourceforge.net/doc/pgmnoise.html>.
- Generate a PGM image containing white noise:
`pgmnoise {{width}} {{height}} > {{path/to/output.pgm}}`
- Specify the seed for the pseudo-random number generator:
`pgmnoise {{width}} {{height}} -randomseed {{value}} > {{path/to/output.pgm}}`

24
pages/common/pgmramp.md Normal file
View File

@ -0,0 +1,24 @@
# pgmramp
> Generate a greyscale map.
> More information: <https://netpbm.sourceforge.net/doc/pgmramp.html>.
- Generate a left-to-right greyscale map:
`pgmtexture -lr > {{path/to/output.pgm}}`
- Generate a top-to-bottom greyscale map:
`pgmtexture -tb > {{path/to/output.pgm}}`
- Generate a rectangular greyscale map:
`pgmtexture -rectangle > {{path/to/output.pgm}}`
- Generate a elliptical greyscale map:
`pgmtexture -ellipse {{path/to/image.pgm}} > {{path/to/output.pgm}}`
- Generate a greyscale map from the top-left corner to the bottom-right corner:
`pgmtexture -diagonal {{path/to/image.pgm}} > {{path/to/output.pgm}}`

View File

@ -0,0 +1,12 @@
# pgmtexture
> Extract textural features from a PGM image.
> More information: <https://netpbm.sourceforge.net/doc/pgmtexture.html>.
- Extract textural features from a PGM image:
`pgmtexture {{path/to/image.pgm}} > {{path/to/output.pgm}}`
- Specify the distance parameter for the feature extraction algorithm:
`pgmtexture -d {{distance}} {{path/to/image.pgm}} > {{path/to/output.pgm}}`

View File

@ -1,15 +1,16 @@
# ppmhist
> Print a histogram of the colors present in a PPM image.
> See also: `pgmhist`.
> More information: <https://netpbm.sourceforge.net/doc/ppmhist.html>.
- Generate the histogram for human reading:
`ppmhist -nomap {{path/to/image_file.ppm}}`
`ppmhist -nomap {{path/to/image.ppm}}`
- Generate a PPM file of the colormap for the image, with the color histogram as comments:
`ppmhist -map {{path/to/image_file.ppm}}`
`ppmhist -map {{path/to/image.ppm}}`
- Display version: