Revision 6 as of 2007-07-15 19:12:43

Clear message

Name

filt_dilation - Calculate the dilation filtered image (for both binary and graylevel image).

Usage

output = filt_dilation(input, mask, "morph_type")

Input

input
The first input image
mask
The second input image used as the mask.
  • The size of the mask has to be odd so that the center of mask can be well defined.
  • The size of the mask should be smaller than the size of the first input image.
morph_type
Type of the dilation
  • BINARY is for dilation (binary) filter;
  • GRAYLEVEL is for dilation (graylevel) filter.

Output

output
dilation filtered image

Method

  1. For dilation (binary) filter, the filtered image is defined as the Minkowski addition of the two input images $A\oplusB={t\inZ^2; t=a+b, a\inA, b\inB}$
  2. For dilation (graylevel) filter, the filtered image is defined as $A\oplusB=\max[A(x+i,y+j)+B(i,j)]$

Reference

H. R. Myler and A. R. Weeks, "The Pocket Handbook of Image Processing Algorithms in C," Prentice Hall: Upper Saddle River, New Jersey, 1993.

Author / Maintainer

Pawel A. Penczek

Keywords

category 1
FILTER
category 2
SPATIAL, NONLINEAR

Files

rsconvolution.cpp

See also

Maturity

stable
works for most people, has been tested; test cases/examples available.

Bugs

None. It is perfect.