CmdID

CmdID / Commands

pnmnorm

Normalize the contrast in a PNM image. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Force the brightest pixels to be white, the darkest pixels to be black, and spread out the ones in between linearly

pnmnorm path/to/image.pnm >path/to/output.pnmIdentify

Force the brightest pixels to be white, the darkest pixels to be black, and spread out the ones in between quadratically such that pixels with a brightness of n become 50 % bright

pnmnorm -midvalue n path/to/image.pnm >path/to/output.pnmIdentify

Keep the pixels' hue, only modify the brightness

pnmnorm -keephues path/to/image.pnm >path/to/output.pnmIdentify

Specify a method to calculate a pixel's brightness

pnmnorm -luminosity path/to/image.pnm >path/to/output.pnmIdentify