← 返回命令列表

Linux command

pamedge 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Detect edges

pamedge [input.pam] > [output.pam]

Detect edges from pipe

cat [image.pam] | pamedge > [edges.pam]

Detect edges and threshold

pamedge [input.pam] | pamditherbw -threshold > [edges.pbm]

说明

pamedge reads a Netpbm image (PNM or PAM) and produces an output image that outlines the edges. It uses the Pythagorean sum of two Sobel gradient operators at 90 degrees to each other for edge detection. The output format matches the input, except the minimum maxval is 255. PBM input is converted to PGM output. For sharper bilevel edge images, pipe the output through pamditherbw -threshold. Part of the Netpbm toolkit. Supersedes pgmedge, which only handled PGM and PBM formats.

FAQ

What is the pamedge command used for?

pamedge reads a Netpbm image (PNM or PAM) and produces an output image that outlines the edges. It uses the Pythagorean sum of two Sobel gradient operators at 90 degrees to each other for edge detection. The output format matches the input, except the minimum maxval is 255. PBM input is converted to PGM output. For sharper bilevel edge images, pipe the output through pamditherbw -threshold. Part of the Netpbm toolkit. Supersedes pgmedge, which only handled PGM and PBM formats.

How do I run a basic pamedge example?

Run `pamedge [input.pam] > [output.pam]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more pamedge examples?

This page includes 3 examples for pamedge, plus related commands for nearby Linux tasks.