HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pgmkernel — Generate a convolution kernel to be used with `pnmconvol`. See also: `pnmconvol`. More information:

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandpgmkernelusedcliwithconvolutiongeneratekernel

Problem

How to use the pgmkernel command: Generate a convolution kernel to be used with pnmconvol. See also: pnmconvol. More information: <https://netpbm.sourceforge.net/doc/pgmkernel.html>.

Solution

pgmkernel — Generate a convolution kernel to be used with pnmconvol. See also: pnmconvol. More information: <https://netpbm.sourceforge.net/doc/pgmkernel.html>.

Generate a convolution kernel:
pgmkernel {{width}} {{height}} > {{path/to/output.pgm}}


Generate a quadratic convolution kernel:
pgmkernel {{size}} > {{path/to/output.pgm}}


Specify the weight of the center in the generated kernel:
pgmkernel {{[-w|-weight]}} {{value}} {{width}} {{height}} > {{path/to/output.pgm}}

Code Snippets

Generate a convolution kernel

pgmkernel {{width}} {{height}} > {{path/to/output.pgm}}

Generate a quadratic convolution kernel

pgmkernel {{size}} > {{path/to/output.pgm}}

Specify the weight of the center in the generated kernel

pgmkernel {{[-w|-weight]}} {{value}} {{width}} {{height}} > {{path/to/output.pgm}}

Context

tldr-pages: common/pgmkernel

Revisions (0)

No revisions yet.