Differences between revisions 9 and 10
 ⇤ ← Revision 9 as of 2008-03-20 20:17:03 → Size: 1454 Editor: penczek Comment: moved to morphology ← Revision 10 as of 2008-03-20 20:18:16 → ⇥ Size: 1368 Editor: penczek Comment: Deletions are marked like this. Additions are marked like this. Line 1: Line 1: ## page was renamed from filt dilation Line 3: Line 2: filt_dilation - Calculate the dilation filtered image (for both binary and graylevel image). dilation - Calculate the dilation filtered image (for both binary and graylevel image). Line 6: Line 5: output = filt_dilation(input, mask, "morph_type") output = dilation(input, mask, "morph_type") Line 18: Line 17: output:: dilation filtered image output:: dilated image Line 22: Line 21: 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)]\$ 1. For dilation binary, the output 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, the output image is defined as \$A\oplusB=\max[A(x+i,y+j)+B(i,j)]\$ Line 35: Line 34: category 2:: FILTER, SPATIAL, NONLINEAR category 2:: SPATIAL, NONLINEAR Line 38: Line 37: filter.py morphology.py

# Name

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

# Usage

## Input

input
The first input image
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
dilated image

# Method

1. For dilation binary, the output 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, the output 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.

Pawel A. Penczek

# Keywords

category 1
MORPHOLOGY
category 2
SPATIAL, NONLINEAR

morphology.py