graymap(pgm)をbitmap(pbm)に変換する
pgmtopbm [-floyd|-fs|-threshold|-dither8|-d8 |
-cluster3|-c3|-cluster4|-c4|-cluster8|-c8]
[-value val]
[pgmfile]
graymapを入力ファイルとして読み込んで、bitmapを出力する。
このコマンドを使う前にppmconvolなどでフィルタリングをかけてから
pgmtopbmをかけると結果が良くなることもある。
なおppmをgraymap(pgm)やppmに変換するコマンドは存在しない。
なぜならたいていのppmやpgmを読むコマンドはpbmも読み込むことが
できるからである。
graymapをbitmapに変換する方法は次の通り。
test.pgmを
として以下のコマンドを実行してみると、






The only reference you need for this stuff is "Digital Half- toning" by Robert Ulichney, MIT Press, ISBN 0-262-21009-6.
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.