pgmのコントラストを正規化する
pgmnorm [-bpercent| -bvalue ] [-wpercent | -wvalue] [pgmfile]
graymap(pgm)ファイルを入力して、明るいピクセルを白に、
暗いピクセルを黒に変えて、その間をスケールし直すことによってコントラストを
正規化したgraymapを出力する。
暗い方の2パーセント、明るい方の1パーセントの部分が黒と白に変えられる。
pgmfileが指定されていなければ、入力は標準入力になる。
出力は標準出力である。
pgmhistコマンドを利用すると変える値の参考にできるだろう。
test.pgmを として
pgmnorm test.pgm > norm.pgm
を実行するとnorm.pgm となる。
Partially based on the fbnorm filter in Michael Mauldin's "Fuzzy Pixmap" package. Copyright (C) 1989 by Jef Poskanzer. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting docu- mentation. This software is provided "as is" without express or implied warranty.