2025-03-14 21:59:59 -06:00
|
|
|
# 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:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`pnmhisteq {{[-g|-grey]}} {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Do not include black or white pixels in the histogram equalization:
|
|
|
|
|
|
|
|
|
|
`pnmhisteq -no{{black|white}} {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|