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

DESCRIPTION

29       This program is part of Netpbm(1).
30
31       pgmmedian applies a median filter to a PGM image, using either the his‐
32       togram sort or select kth value method to determine the median.
33
34       See  the  -type  and  -cutoff  options for information on how pgmmedian
35       chooses between the two methods.
36
37

OPTIONS

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

REFERENCES

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

SEE ALSO

97       pgmnoise(1), pamaddnoise(1), pgm(1)
98
99

HISTORY

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

AUTHOR

108       Copyright (C) 1996 by Mike Burns <burns@cac.psu.edu>
109
110
111
112netpbm documentation            28 August 2005        Pgmmedian User Manual(0)
Impressum