← 返回命令列表

Linux command

pamrecolor 命令

文件

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

常用示例

Colorize grayscale image

pamrecolor -colorfile [color.ppm] [gray.ppm] > [output.ppm]

Apply color from solid

pamrecolor -targetcolor "rgb:ff/00/00" [gray.ppm] > [red.ppm]

Preserve luminance

pamrecolor -colorfile [palette.ppm] -rmult [1.0] [input.ppm] > [output.ppm]

说明

pamrecolor changes the colors of an image while preserving luminance. It can colorize grayscale images or remap colors from one image using colors from another.

参数

-colorfile _file_
Source color image.
-targetcolor _color_
Single target color.
-rmult, -gmult, -bmult _factor_
Channel multipliers.

FAQ

What is the pamrecolor command used for?

pamrecolor changes the colors of an image while preserving luminance. It can colorize grayscale images or remap colors from one image using colors from another.

How do I run a basic pamrecolor example?

Run `pamrecolor -colorfile [color.ppm] [gray.ppm] > [output.ppm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -colorfile _file_ do in pamrecolor?

Source color image.