pgmkernel

generates convolution kernels as PGM images for use with pnmconvol

TLDR

Generate convolution kernel
$ pgmkernel [7] [7] > [kernel.pgm]
Generate with weight
$ pgmkernel -weight [6.0] [5] [5] > [kernel.pgm]

SYNOPSIS

pgmkernel [options] width height

DESCRIPTION

pgmkernel generates convolution kernels as PGM images for use with pnmconvol. Creates Gaussian-like weighting patterns. Part of Netpbm toolkit.

PARAMETERS

width

Kernel width.
height
Kernel height.
-weight n
Center pixel weight.

INSTALL

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

SEE ALSO

pnmconvol(1), pgmtexture(1)