lvmcdilate(3)

LIBRARY ROUTINE
lvmcdilate - Conditionalloy dilate a binary image by a structuring element.

LIBRARY CALL
#include "vinclude.h"
int
lvmcdilate(image,kernel,foreground,wave)
struct xvimage *image, *kernel;
int foreground,wave;

INPUT

    img1 -- xvimage structure
    ker -- xvimage structure (morphological kernel)
    f -- int (foreground value to dilate)

OUTPUT

    img1 -- holds the result of the dilation by the kernel

MODIFICATIONS
Ghost Conversion by Pascal Adam (Thu May 24 14:14:55 MDT 1990)

DESCRIPTION
vmcdilate computes the Dilation of an binary image by a structuring element. BEHAVIOR:

For this binary dilation function, the user may specify a 'foreground' grey level; then all grey levels different from the foreground are considered 'background'. The user may also specify a 'wave' value, that is, the value given the pixels that are changed by the dilation. This is useful for visualizing the effects of the dilation. If neither foreground (f) nor wave value (w) are specified, then it is assumed that the background is black and all other values are foreground.

The structuring element has to be a morphological kernel (created by vmcustom). This kernel but an image file with two variables ispare1 and ispare2 that define the origin of the structuring element (refer to vmcustom and lvmcustom).

This algorithm is modified from one found in:

    "Morphological Methods in Image and Signal Processing"

    Charles R.Giardina

    Edward R. Dougherty

    Prentice Hall, Englewood Cliffs, New Jersey 07632

SEE ALSO
vmcdilate(1), intro(3), vipl(3), verror(3), vutils(3) vmcdilate(1)

RESTRICTIONS
vmcdilate will only operate on:
    BYTE
data storage types.

AUTHOR
Pascal Adam Greg Donohoe

COPYRIGHT
Copyright 1991, University of New Mexico. All rights reserved.