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

NAME

6       pgmmorphconv - perform morphological convolutions: dilation, erosion
7
8

SYNOPSIS

10       pgmmorphconv  [  -erode | -dilate | -open | -close ] templatefile [pgm‐
11       file]
12
13       Minimum unique abbreviation of option is acceptable.  You may use  dou‐
14       ble  hyphens  instead  of single hyphen to denote options.  You may use
15       white space in place of the equals sign to separate an option name from
16       its value.
17
18

DESCRIPTION

20       This program is part of Netpbm(1).
21
22       pgmmorphconv  performs morphological convolutions on a PGM image: dila‐
23       tion and erosion.
24
25       pgmmorphconv performs a "topological" convolution.  For each  pixel  of
26       the input, pgmmorphconv generates an output pixel in the same position.
27       To determine the intensity of the output pixel, pgmmorphconv  lays  the
28       template  image  over the input image such that the middle pixel of the
29       template is over the input pixel in question.   pgmmorphconv  looks  at
30       the  input  pixels  underneath each white pixel in the template.  For a
31       dilation, the maximum intensity of all those pixels is the intensity of
32       the output pixel.  For an erosion, it is the minimum.
33
34       Thus,  the dilation effect is that bright areas of the input get bigger
35       and dark areas smaller.  The erosion effect is the opposite.  The  sim‐
36       plest  template image would be one with a white pixel in the middle and
37       the rest black.  This would produce an output image  identical  to  the
38       input.   Another  simple  template image is a fully white square.  This
39       causes bright or dark areas to expand in all  directions.   A  template
40       image that is white on the left side and black on the right would smear
41       the image to the right.
42
43       The template file named by templatefile contains the template image  as
44       a  PBM  image.  It must have an odd number of rows and an odd number of
45       columns, so there is a definite middle pixel.  It must contain at least
46       one white pixel.
47
48       This is similar to the continuous convolution done by pnmconvol, except
49       that with pnmconvol the output  intensity  is  a  weighted  average  of
50       nearby input pixels instead of a minimum or maximum.
51
52       This  convolution changes the three Minkowski integrals in a predefined
53       way, and can be used to filter an image to enhance certain features, to
54       ease their automatic recognition.
55
56       The  options  -erode  and -dilate obviously produce an erosion or dila‐
57       tion, respectively.
58
59       The -open option causes pgmmorphconv to perform first an erode and then
60       a  dilate  operation.  The -close option causes a dilate first and then
61       an erode.  If you specify none of these options,  it  is  the  same  as
62       -dilate.
63
64

SEE ALSO

66       ·
67
68              pgmminkowski(1)
69
70       ·
71
72              pnmconvol(1)
73
74       ·
75
76              pgm(1)
77
78
79       For more information about morphological convolutions, see e.g.
80
81
82       ·
83
84               K. Michielsen and H. De Raedt, "Integral-Geometry Morphological
85              Image   Analysis",    Phys.   Rep.    347,    461-538    (2001).
86http://rugth30.phys.rug.nl/compphys0/2001.htm
87
88
89       ·
90
91               J.S. Kole, K. Michielsen, and H. De Raedt, "Morphological Image
92              Analysis of Quantum Motion  in  Billiards",  Phys.  Rev.  E  63,
93              016201-1              -              016201-7             (2001)
94http://rugth30.phys.rug.nl/pdf/prechaos.pdf
95
96
97
98

AUTHORS

100       Luuk van Dijk, 2001.
101
102       Based on work which is Copyright (C) 1989, 1991 by Jef Poskanzer.
103
104
105
106netpbm documentation            29 October 2002    Pgmmorphconv User Manual(0)
Impressum