← 返回命令列表

Linux command

ppmdist 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Example

ppmdist -intensity [input.ppm] > [output.pgm]

Example

ppmdist -frequency [input.ppm] > [output.pgm]

说明

ppmdist reads a PPM image and produces a PGM output with evenly distributed gray levels. An input of n colors produces n gray levels, maximizing contrast in the output. The mapping order is controlled by the -intensity or -frequency options. Most useful for images with a small number of colors. Part of the Netpbm toolkit.

参数

-intensity
Sort input colors by grayscale intensity before mapping to evenly distributed gray levels.
-frequency
Sort input colors by number of occurrences before mapping to evenly distributed gray levels.

FAQ

What is the ppmdist command used for?

ppmdist reads a PPM image and produces a PGM output with evenly distributed gray levels. An input of n colors produces n gray levels, maximizing contrast in the output. The mapping order is controlled by the -intensity or -frequency options. Most useful for images with a small number of colors. Part of the Netpbm toolkit.

How do I run a basic ppmdist example?

Run `ppmdist -intensity [input.ppm] > [output.pgm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -intensity do in ppmdist?

Sort input colors by grayscale intensity before mapping to evenly distributed gray levels.