mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-02 18:43:07 +00:00
22 lines
587 B
Plaintext
22 lines
587 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|