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

pbmtopgm — Convert a PBM image to PGM by averaging areas surrounding individual pixels. See also: `pnmconvol`,

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

Problem

How to use the pbmtopgm command: Convert a PBM image to PGM by averaging areas surrounding individual pixels. See also: pnmconvol, pamditherbw. More information: <https://netpbm.sourceforge.net/doc/pbmtopgm.html>.

Solution

pbmtopgm — Convert a PBM image to PGM by averaging areas surrounding individual pixels. See also: pnmconvol, pamditherbw. More information: <https://netpbm.sourceforge.net/doc/pbmtopgm.html>.

Convert PBM image to PGM by averaging the wxh-sized area surrounding each pixel:
pbmtopgm {{w}} {{h}} {{path/to/image.pbm}} > {{path/to/output.pgm}}

Code Snippets

Convert PBM image to PGM by averaging the `w`x`h`-sized area surrounding each pixel

pbmtopgm {{w}} {{h}} {{path/to/image.pbm}} > {{path/to/output.pgm}}

Context

tldr-pages: common/pbmtopgm

Revisions (0)

No revisions yet.