mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
603 B
Plaintext
22 lines
603 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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 {{[-d|-dots]}} {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|
|
|
|
- Specify the range of intensity values to include:
|
|
|
|
`pnmhistmap {{[-l|-lval]}} {{minval}} {{[-rv|-rval]}} {{maxval}} {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|