summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-leap-15-6/man1/pamsharpmap.1
blob: f81a17a8d51e2a8d8a14911fd67fbac78b8ce286 (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
\
.\" 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 "Pamsharpmap User Manual" 0 "07 February 2004" "netpbm documentation"

.UN lbAB
.SH NAME
pamsharpmap - create map of sharpness in a PNM/PAM image

.UN lbAC
.SH SYNOPSIS
\fBpamsharpmap\fP [\fIimagefile\fP]

.UN lbAD
.SH DESCRIPTION
.PP
This program is part of
.BR "Netpbm" (1)\c
\&.
.PP
\fBpamsharpmap\fP reads a Netpbm image (PNM or PAM) and produces
an image that shows how sharp it is at each location.
.PP
Sharpness is a measure of how suddenly (in space) colors change in
the image.  \fBpamsharpmap\fP computes the sharpness of each
component color (R, G, B) separately and produces a pixel whose
intensity of each component color is directly proportional to the
sharpness of that component color at the same location in the input
image.  Thus, at a point where the image is very sharp in its red and
green components, but dull in its blue component, you will see a
yellow pixel in the output.
.PP
\fBpamsharpmap\fP computes sharpness at a point simply as the
average difference in intensity between the pixel at that point and
the 8 pixels surrounding it.
.PP
At the edges of the image, where there are not 8 pixels surrounding
a pixel, \fBpamsharpmap\fP assumes the image is extended with a black
border.
.PP
\fBpamsharpmap\fP assumes that the image is a PNM or PNM
equivalent PAM.  If it isn't, the results are not necessarily
meaningful.
.PP
The output image is the same dimensions, depth, and tuple type as
the input, and has maxval 255.

.UN lbAE
.SH SEE ALSO
.BR "pamsharpness" (1)\c
\&,
.BR "pammasksharpen" (1)\c
\&,
.BR "pamedge" (1)\c
\&,
.BR "pam" (5)\c
\&,
.BR "pnm" (5)\c
\&

.UN history
.SH HISTORY
.PP
\fBpamsharpmap\fP was added to Netpbm in Release 10.21 (March
2004).  Bryan Henderson derived it from the program \fBpnmsharp\fP by
B.W. van Schooten and distributed as part of the Photopnmtools
package.
.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/pamsharpmap.html
.PP