1\
2.\" This man page was generated by the Netpbm tool 'makeman' from HTML source.
3.\" Do not hand-hack it!  If you have bug fixes or improvements, please find
4.\" the corresponding HTML page on the Netpbm website, generate a patch
5.\" against that, and send it to the Netpbm maintainer.
6.TH "Pamsharpness User Manual" 0 "07 February 2004" "netpbm documentation"
7
8.SH NAME
9pamsharpness - measure the sharpness of a PNM/PAM image
10
11.UN synopsis
12.SH SYNOPSIS
13\fBpamsharpness\fP [\fIimagefile\fP]
14
15.UN description
16.SH DESCRIPTION
17.PP
18This program is part of
19.BR "Netpbm" (1)\c
20\&.
21.PP
22\fBpamsharpness\fP reads a Netpbm image (PNM or PAM) and prints a
23message to Standard Output giving a number that tells how sharp it is.
24.PP
25Sharpness is a measure of how suddenly (in space) colors change in
26the image.  \fBpamsharpness\fP computes the sharpness of the image as
27the average difference in intensity between each pixel and its 8 surrounding
28pixels, in each of the color components (R, G, B).
29.PP
30\fBpamsharpness\fP does not include the edges of the image, where
31there are not 8 pixels surrounding a pixel, in its computation.
32.PP
33\fBpamsharpness\fP assumes that the image is a PNM or PNM
34equivalent PAM.  If it isn't, the results are not necessarily
35meaningful.
36
37.UN seealso
38.SH SEE ALSO
39.BR "pamsharpmap" (1)\c
40\&,
41.BR "pammasksharpen" (1)\c
42\&,
43.BR "pam" (5)\c
44\&,
45.BR "pnm" (5)\c
46\&
47
48.UN history
49.SH HISTORY
50.PP
51\fBpamsharpness\fP was added to Netpbm in Release 10.21 (March
522004).  Bryan Henderson derived it from the program \fBpnmsharp\fP by
53B.W. van Schooten and distributed as part of the Photopnmtools
54package.
55.SH DOCUMENT SOURCE
56This manual page was generated by the Netpbm tool 'makeman' from HTML
57source.  The master documentation is at
58.IP
59.B http://netpbm.sourceforge.net/doc/pamsharpness.html
60.PP