mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 05:02:09 +02:00
pnmhisteq, pnmhistmap, pnmindex, pnminvert: add pages (#12189)
* pnmhisteq, pnmhistmap, pnmindex, pnminvert: add pages * Update pages/common/pnmindex.md Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
7133769734
commit
ac7152950e
4 changed files with 61 additions and 0 deletions
16
pages/common/pnmhisteq.md
Normal file
16
pages/common/pnmhisteq.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# pnmhisteq
|
||||
|
||||
> Histogram-equalize a PNM image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pnmhisteq.html>.
|
||||
|
||||
- Increase the contrast of a PNM image using histogram equalization:
|
||||
|
||||
`pnmhisteq {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|
||||
|
||||
- Only modify grey pixels:
|
||||
|
||||
`pnmhisteq -grey {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|
||||
|
||||
- Do not include black or white pixels in the histogram equalization:
|
||||
|
||||
`pnmhisteq -no{{black|white}} {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|
16
pages/common/pnmhistmap.md
Normal file
16
pages/common/pnmhistmap.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# pnmhistmap
|
||||
|
||||
> Draw a histogram of a PNM image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pnmhistmap.html>.
|
||||
|
||||
- Draw a histogram of a PNM image:
|
||||
|
||||
`pnmhistmap {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|
||||
|
||||
- Draw the histogram as dots instead of bars:
|
||||
|
||||
`pnmhistmap -dots {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|
||||
|
||||
- Specify the range of intensity values to include:
|
||||
|
||||
`pnmhistmap -lval {{minval}} -rval {{maxval}} {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|
21
pages/common/pnmindex.md
Normal file
21
pages/common/pnmindex.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# pnmindex
|
||||
|
||||
> Build a visual index of multiple PNM images.
|
||||
> See also: `pamundice`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pnmindex.html>.
|
||||
|
||||
- Produce an image containing thumbnails of the specified images in a grid:
|
||||
|
||||
`pnmindex {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}`
|
||||
|
||||
- Specify the size of the (quadratic) thumbnails:
|
||||
|
||||
`pnmindex -size {{50}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}`
|
||||
|
||||
- Specify the number of thumbnails per row:
|
||||
|
||||
`pnmindex -across {{10}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}`
|
||||
|
||||
- Specify the maximum number of colors in the output:
|
||||
|
||||
`pnmindex -colors {{512}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}`
|
8
pages/common/pnminvert.md
Normal file
8
pages/common/pnminvert.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# pnminvert
|
||||
|
||||
> Invert a PNM image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pnminvert.html>.
|
||||
|
||||
- Invert the colors or greyscale values in a PNM image:
|
||||
|
||||
`pnminvert {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|
Loading…
Add table
Reference in a new issue