summaryrefslogtreecommitdiffstats
path: root/upstream/fedora-40/man1/pamedge.1
blob: faac75e827585e8d633cb4da0dfadcee10556e63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
\
.\" This man page was generated by the Netpbm tool 'makeman' from HTML source.
.\" Do not hand-hack it!  If you have bug fixes or improvements, please find
.\" the corresponding HTML page on the Netpbm website, generate a patch
.\" against that, and send it to the Netpbm maintainer.
.TH "Pamedge User Manual" 0 "11 January 2003" "netpbm documentation"

.SH NAME
pamedge - edge-detect an image

.UN synopsis
.SH SYNOPSIS

\fBpamedge\fP [\fIimagefile\fP]

.UN description
.SH DESCRIPTION
.PP
This program is part of
.BR "Netpbm" (1)\c
\&.
.PP
\fBpamedge\fP reads a Netpbm image (PNM or PAM) and produces
an image that outlines the edges.
.PP
The output image is of the same type as the input, except that the
maxval of the output is at least 255 and if the input is PBM, the output
is PGM.
.PP
You can pipe the result through \f(CWpamditherbw -threshold\fP and
play with the threshold value to get a PBM (bilevel image) of the edges.

The edge detection technique used is to take the Pythagorean sum of
two Sobel gradient operators at 90 degrees to each other.  For more
details see "Digital Image Processing" by Gonzalez and
Wintz, chapter 7.
.PP
The maxval of the output is the same as the maxval of the input, except at
least 255.  The effect is better with larger maxvals, so you may want to
increase the maxval of the input by running it through \fBpamdepth\fP first.

.UN options
.SH OPTIONS
.PP
There are no command line options defined specifically
for \fBpamedge\fP, but it recognizes the options common to all
programs based on libnetpbm (See 
.UR index.html#commonoptions
 Common Options
.UE
\&.)

.UN seealso
.SH SEE ALSO
.BR "pgmenhance" (1)\c
\&,
.BR "pamditherbw" (1)\c
\&,
.BR "pamdepth" (1)\c
\&,
.BR "pammasksharpen" (1)\c
\&,
.BR "pamsharpness" (1)\c
\&,
.BR "pamsharpmap" (1)\c
\&,
.BR "pam" (1)\c
\&,
.BR "pnm" (1)\c
\&

.UN history
.SH HISTORY
.PP
\fBpamedge\fP was added to Netpbm in Release 10.14 (March 2003).
It replaced \fBpgmedge\fP, which was the same thing, but worked only on
PGM and PBM images.


.UN author
.SH AUTHOR

Copyright (C) 1991 by Jef Poskanzer.  Adapted to \fBpnmedge\fP Peter
Kichgessner in 1995, and then to \fBpamedge\fP by Bryan Henderson in
2003.
.SH DOCUMENT SOURCE
This manual page was generated by the Netpbm tool 'makeman' from HTML
source.  The master documentation is at
.IP
.B http://netpbm.sourceforge.net/doc/pamedge.html
.PP