Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
pgmnorm(1)
Edit
PageHistory
Diff
Info
LikePages
pgmnorm !!!pgmnorm NAME SYNOPSIS DESCRIPTION OPTIONS SEE ALSO AUTHOR ---- !!NAME pgmnorm - normalize the contrast in a portable graymap !!SYNOPSIS __pgmnorm__ [[__-bpercent__ ''N'' | __-bvalue__ ''N''] [[__-wpercent__ ''N'' | __-wvalue__ ''N''] [[''pgmfile''] !!DESCRIPTION Reads a portable graymap as input. Normalizes the contrast by forcing the lightest pixels to white, the darkest pixels to black, and linearly rescaling the ones in between; and produces a portable graymap as output. !!OPTIONS By default, the darkest 2 percent of all pixels are mapped to black, and the lightest 1 percent are mapped to white. You can override these percentages by using the __-bpercent__ and __-wpercent__ flags, or you can specify the exact pixel values to be mapped by using the __-bvalue__ and __-wvalue__ flags. Appropriate numbers for the flags can be gotten from the ''pgmhist'' tool. If you just want to enhance the contrast, then choose values at elbows in the histogram; e.g. if value 29 represents 3% of the image but value 30 represents 20%, choose 30 for ''bvalue''. If you want to lighten the image, then set ''bvalue'' to 0 and just fiddle with ''wvalue''; similarly, to darken the image, set ''wvalue'' to maxval and play with ''bvalue''. All flags can be abbreviated to their shortest unique prefix. !!SEE ALSO pgmhist(1), ppmnorm(1), pgm(5) !!AUTHOR Partially based on the fbnorm filter in Michael Mauldin's Copyright (C) 1989 by Jef Poskanzer. ----
8 pages link to
pgmnorm(1)
:
fstopgm(1)
pbmfilters(1)
pgm(5)
pgmhist(1)
pnmhisteq(1)
ppmbrighten(1)
ppmnorm(1)
Man1p
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.