Woolz Image Processing  Version 1.7.5
AlgCrossCorr.c File Reference

Frequency domain cross correlation functions. More...

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...
 
void AlgCrossCorrPeakY (int *dstMaxY, double *dstMaxVal, double **data, int nY)
 Finds peak value in cross correlation data, only searching the first column. The search is particularly simple because only the first column of the cross correlation data needs to be searched for the angle of rotation. Data are in wrap around order. More...
 

Detailed Description

Frequency domain cross correlation functions.

Author
Bill Hill
Date
March 1999
Version
Id
a368cf8bc004e5cc72bec351bde8f87a25d95b11
Address: MRC Human Genetics Unit, MRC Institute of Genetics and Molecular Medicine, University of Edinburgh, Western General Hospital, Edinburgh, EH4 2XU, UK.
Copyright (C), [2012], The University Court of the University of Edinburgh, Old College, Edinburgh, UK.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Todo:
Bug:
None known.

Function Documentation

void AlgCrossCorrPeakY ( int *  dstMaxY,
double *  dstMaxVal,
double **  data,
int  nY 
)

Finds peak value in cross correlation data, only searching the first column. The search is particularly simple because only the first column of the cross correlation data needs to be searched for the angle of rotation. Data are in wrap around order.

Returns
void
Parameters
dstMaxYDestination ptr for line coordinate with maximum value. correlation maximum.
dstMaxValCross correlation maximum.
dataCross correlation data.
nYNumber of lines in data array.