LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pamfunc

applies mathematical functions

TLDR

Multiply pixel values
$ pamfunc -multiplier=[1.5] [input.pam] > [output.pam]
copy
Add to pixel values
$ pamfunc -adder=[50] [input.pam] > [output.pam]
copy
Apply power function
$ pamfunc -power=[2.2] [input.pam] > [output.pam]
copy

SYNOPSIS

pamfunc [options] [file]

DESCRIPTION

pamfunc applies mathematical functions. Transforms pixel values.
The tool performs arithmetic on images. Part of Netpbm.

PARAMETERS

FILE

Input PAM/PNM file.
-multiplier FACTOR
Multiply values.
-adder VALUE
Add to values.
-power EXPONENT
Apply power function.
-divisor VALUE
Divide values.

CAVEATS

Part of Netpbm. Values clamped to valid range.

HISTORY

pamfunc is part of Netpbm for mathematical image transformations.

SEE ALSO

pamarith(1), pnmgamma(1), netpbm(1)

Copied to clipboard
Kai