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

pnmnlfilt — Apply a non-linear filter onto a PNM image. More information: <https://netpbm.sourceforge.net/doc/pn

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

Problem

How to use the pnmnlfilt command: Apply a non-linear filter onto a PNM image. More information: <https://netpbm.sourceforge.net/doc/pnmnlfilt.html>.

Solution

pnmnlfilt — Apply a non-linear filter onto a PNM image. More information: <https://netpbm.sourceforge.net/doc/pnmnlfilt.html>.

Apply the "alpha trimmed mean" filter with the specified alpha and radius values onto the PNM image:
pnmnlfilt {{0.0..0.5}} {{radius}} {{path/to/image.pnm}} > {{path/to/output.pnm}}


Apply the "optimal estimation smoothing" filter with the specified noise threshold and radius onto the PNM image:
pnmnlfilt {{1.0..2.0}} {{radius}} {{path/to/image.pnm}} > {{path/to/output.pnm}}


Apply the "edge enhancement" filter with the specified alpha and radius onto the PNM image:
pnmnlfilt {{-0.9..(-0.1)}} {{radius}} {{path/to/image.pnm}} > {{path/to/output.pnm}}

Code Snippets

Apply the "alpha trimmed mean" filter with the specified alpha and radius values onto the PNM image

pnmnlfilt {{0.0..0.5}} {{radius}} {{path/to/image.pnm}} > {{path/to/output.pnm}}

Apply the "optimal estimation smoothing" filter with the specified noise threshold and radius onto the PNM image

pnmnlfilt {{1.0..2.0}} {{radius}} {{path/to/image.pnm}} > {{path/to/output.pnm}}

Apply the "edge enhancement" filter with the specified alpha and radius onto the PNM image

pnmnlfilt {{-0.9..(-0.1)}} {{radius}} {{path/to/image.pnm}} > {{path/to/output.pnm}}

Context

tldr-pages: common/pnmnlfilt

Revisions (0)

No revisions yet.