Linux command
pamditherbw 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Dither to black and white
pamditherbw [input.pgm] > [output.pbm]
Dither with Floyd-Steinberg
pamditherbw -fs [input.pgm] > [output.pbm]
Dither with threshold
pamditherbw -threshold -value [0.5] [input.pgm] > [output.pbm]
说明
pamditherbw converts grayscale images to black and white using dithering. Multiple algorithms available for different quality/speed tradeoffs. Part of Netpbm toolkit.
参数
- -fs
- Floyd-Steinberg dithering.
- -threshold
- Simple threshold.
- -hilbert
- Hilbert curve dithering.
- -value _n_
- Threshold value (0.0-1.0).
FAQ
What is the pamditherbw command used for?
pamditherbw converts grayscale images to black and white using dithering. Multiple algorithms available for different quality/speed tradeoffs. Part of Netpbm toolkit.
How do I run a basic pamditherbw example?
Run `pamditherbw [input.pgm] > [output.pbm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -fs do in pamditherbw?
Floyd-Steinberg dithering.