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.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid