mediaLib Library Functions mlibImageMaxFilter3x3(3MLIB)
NAME
mlibImageMaxFilter3x3 - 3x3 maximum filter
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibImageMaxFilter3x3(mlibimage *dst, const mlibimage *src);
DESCRIPTION
The mlibImageMaxFilter3x3() function replaces the center
pixel in a neighborhood with the maximum value in that
neighborhood for each 3x3 neighborhood in the image.
The source and destination images must be single-channel
images.
It uses the following equation:
dst[x][y][0] = MAX{ src[p][q][0],
x-1 < p < x]1; y-1 < q < y]1 }
where x = 1, ..., w - 2; y = 1, ..., h - 2.
PARAMETERS
The function takes the following arguments:
dst Pointer to destination image.
src Pointer to source image.
RETURN VALUES
The function returns MLIBSUCES if successful. Otherwise
it returns MLIBFAILURE.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibImageMaxFilter3x3(3MLIB)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
mlibImageMaxFilter3x3Fp(3MLIB),
mlibImageMaxFilter5x5(3MLIB),
mlibImageMaxFilter5x5Fp(3MLIB),
mlibImageMaxFilter7x7(3MLIB),
mlibImageMaxFilter7x7Fp(3MLIB),
mlibImageMedianFilter3x3(3MLIB),
mlibImageMedianFilter3x3Fp(3MLIB),
mlibImageMedianFilter3x3US(3MLIB),
mlibImageMedianFilter5x5(3MLIB),
mlibImageMedianFilter5x5Fp(3MLIB),
mlibImageMedianFilter5x5US(3MLIB),
mlibImageMedianFilter7x7(3MLIB),
mlibImageMedianFilter7x7Fp(3MLIB),
mlibImageMedianFilter7x7US(3MLIB),
mlibImageMedianFilterMxN(3MLIB),
mlibImageMedianFilterMxNFp(3MLIB),
mlibImageMedianFilterMxNUS(3MLIB),
mlibImageMinFilter3x3(3MLIB),
mlibImageMinFilter3x3Fp(3MLIB),
mlibImageMinFilter5x5(3MLIB),
mlibImageMinFilter5x5Fp(3MLIB),
mlibImageMinFilter7x7(3MLIB),
mlibImageMinFilter7x7Fp(3MLIB),
mlibImageRankFilter3x3(3MLIB),
mlibImageRankFilter3x3Fp(3MLIB),
mlibImageRankFilter3x3US(3MLIB),
mlibImageRankFilter5x5(3MLIB),
mlibImageRankFilter5x5Fp(3MLIB),
mlibImageRankFilter5x5US(3MLIB),
mlibImageRankFilter7x7(3MLIB),
mlibImageRankFilter7x7Fp(3MLIB),
mlibImageRankFilter7x7US(3MLIB),
mlibImageRankFilterMxN(3MLIB),
mlibImageRankFilterMxNFp(3MLIB),
mlibImageRankFilterMxNUS(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|