Woolz Image Processing  Version 1.8.3
AlgCorr

Files

file  AlgAutoCorr.c
 Frequency domain auto correlation functions.
 
file  AlgCrossCorr.c
 Frequency domain cross correlation functions.
 

Functions

AlgError AlgCrossCorrelate2D (double **data0, double **data1, int nX, int nY)
 Cross correlates the given 2D double arrays leaving the result in the first of the two arrays. The cross correlation data are un-normalized. More...
 
void AlgCrossCorrPeakXY (int *dstMaxX, int *dstMaxY, double *dstMaxVal, double **data, int nX, int nY, int searchX, int searchY)
 Find the maximum correlation value in the given two dimensional array. Because the correlation data are stored in wrap-around order and the maximum is known to lie within a limited search range, only the four corners of the array are searched.
More...
 

Detailed Description

Function Documentation

◆ AlgCrossCorrelate2D()

AlgError AlgCrossCorrelate2D ( double **  data0,
double **  data1,
int  nX,
int  nY 
)

Cross correlates the given 2D double arrays leaving the result in the first of the two arrays. The cross correlation data are un-normalized.

Returns
Error code.
Parameters
data0Data for/with obj0's FFT (source: AlcDouble2Malloc) which holds the cross
correlation data on return.
data1Data for/with obj1's FFT (source: AlcDouble2Malloc).
nXNumber of columns in each of the data arrays.
nYNumber of lines in each of the data arrays.

References ALG_ERR_FUNC, ALG_ERR_NONE, AlgBitNextPowerOfTwo(), AlgFourReal2D(), and AlgFourRealInv2D().

◆ AlgCrossCorrPeakXY()

void AlgCrossCorrPeakXY ( int *  dstMaxX,
int *  dstMaxY,
double *  dstMaxVal,
double **  data,
int  nX,
int  nY,
int  searchX,
int  searchY 
)

Find the maximum correlation value in the given two dimensional array. Because the correlation data are stored in wrap-around order and the maximum is known to lie within a limited search range, only the four corners of the array are searched.

Returns
void
Parameters
dstMaxXDestination ptr for column coordinate with maximum value.
dstMaxYDestination ptr for line coordinate with maximum value.
dstMaxValDestination ptr for maximum value.
dataData to search for maximum.
nXNumber of colimns in data.
nYNumber of lines in data.
searchXMaximum number of columns to search.
searchYMaximum number of lines to search.