1Pgmmedian User Manual(0)                              Pgmmedian User Manual(0)
2
3
4

NAME

6       pgmmedian - apply a median filter to a PGM file
7
8

SYNOPSIS

10       pgmmedian
11
12       [-width=n]
13
14       [-height=n]
15
16       [-type=median_type]
17
18       [-cutoff=int]
19
20       [pnmfile]
21
22       Minimum  unique abbreviation of option is acceptable.  You may use dou‐
23       ble hyphens instead of single hyphen to denote options.   You  may  use
24       white space in place of the equals sign to separate an option name from
25       its value.
26
27
28

DESCRIPTION

30       This program is part of Netpbm(1).
31
32       pgmmedian applies a median filter to a PGM image, using either the his‐
33       togram sort or select kth value method to determine the median.
34
35       A  median  filter is a convolution filter in which the value of a pixel
36       in the output is the median of a certain set of pixels in the neighbor‐
37       hood  of  the  corresponding  input  pixel.  The effect is to eliminate
38       locally extreme values.  Such pixels typically show up as speckles.
39
40       See the -type and -cutoff options  for  information  on  how  pgmmedian
41       chooses between the two methods.
42
43
44

OPTIONS

46       -cutoff int
47              This  option  provides  the  cutoff value that pgmmedian uses to
48              decide between using the histogram  sort  or  select  kth  value
49              method to find the median.
50
51              If (maxval / ((width * height) - 1)), where maxval is the maxval
52              of the image and width and height  are  the  dimensions  of  the
53              mask,  is  less  than the cutoff value, pgmmedian uses histogram
54              sort.  Otherwise, it uses kth value.
55
56              This option has no effect if you specify -type.
57
58              The default is 250
59
60
61       -width=n
62              Width of the median mask to apply.
63
64              Default is 3.
65
66
67       -height=n
68              Height of the median mask to apply.
69
70              Default is 3.
71
72
73       -type median_type
74              This option selects which method to use to find  median  regard‐
75              less of cutoff value.  Choices are histogram_sort and select.
76
77              By  default,  pgmmedian decides which method to use as described
78              under the -cutoff option.
79
80
81
82

REFERENCES

84       ·      "Collected Algorithms from ACM"  Volume  II,  Algorithm  489  by
85              Robert W. Floyd
86
87
88       ·      "A  Fast  Two-Dimensional  Median  Filtering Algorithm" in "IEEE
89              Transactions on Acoustics, Speech, and Signal  Processing"  Vol.
90              ASSP-27, No. 1, February 1979
91
92
93       ·      "Digital Image Processing Algorithms" by Ioannis Pitas, Prentice
94              Hall, 1993 ISBN 0-13-145814-0
95
96
97
98
99

SEE ALSO

101       pgmnoise(1), pamaddnoise(1), pnmconvol(1), pgmmorphconv(1), pgm(1)
102
103

HISTORY

105       pgmmedian was added to Netpbm in Version 10.29 (August 2005).   It  had
106       been  distributed  by  Mike Burns via his own web site before that (and
107       continued to be so).
108
109
110

AUTHOR

112       Copyright (C) 1996 by Mike Burns <burns@cac.psu.edu>
113

DOCUMENT SOURCE

115       This manual page was generated by the Netpbm tool 'makeman'  from  HTML
116       source.  The master documentation is at
117
118              http://netpbm.sourceforge.net/doc/pgmmedian.html
119
120netpbm documentation            28 August 2005        Pgmmedian User Manual(0)
Impressum