mediaLib Library Functions mlibImageAutoCorrelFp(3MLIB)
NAME
mlibImageAutoCorrelFp - auto-correlation of an image
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibImageAutoCorrelFp(mlibd64 *correl,
const mlibimage *img, mlibs32 dx, mlibs32 dy);
DESCRIPTION
The mlibImageAutoCorrelFp() function computes the auto-
correlation of a floating-point image, given an offset.
It uses the following equation:
1 w-dx-1 h-dy-1
correl[i] = -------------- * SUM SUM (img[x][y][i] * img[x]dx][y]dy][i])
(w-dx)*(h-dy) x=0 y=0
where w and h are the width and height of the image, respec-
tively.
PARAMETERS
The function takes the following arguments:
correl Pointer to auto-correlation array where size is
equal to the number of channels. correl[i] con-
tains the auto-correlation of channel i.
img Pointer to image.
dx Displacement in the X direction.
dy Displacement in the Y direction.
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 mlibImageAutoCorrelFp(3MLIB)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
mlibImageAutoCorrel(3MLIB), mlibImageCrossCorrel(3MLIB),
mlibImageCrossCorrelFp(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|