lvsubstit(3)

LIBRARY ROUTINE
lvsubstit - Substitute each occurence of a given pixel value with a different value

LIBRARY CALL
#include "vinclude.h"
int
lvsubstit(image,old,new)
struct xvimage *image;
int old, new;

INPUT

img VIFF image structure, must be a byte image.

old old pixel value, to be replaced

new new pixel value

OUTPUT

img2
    VIFF image structure, image with designated pixel values replaced

MODIFICATIONS

DESCRIPTION
vsubstit computes the EROSION of an binary image by a structuring element. Substitute each pixel with value 'old value' with a new pixel of 'new value'. Useful as an intermediate step in morphological analysis.

This routine simply reassigns pixels of the given value a new value. This is useful as an intermediate step in morphological analysis of binary images.

SEE ALSO
vsubstit(1), intro(3), vipl(3), verror(3), vutils(3) vsubstit(1), vmcustom(1), lvmcustom(3)

RESTRICTIONS
vsubstit accepts only BYTE images.

AUTHOR
Greg Donohoe

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