1IM_CORREL(3)               Library Functions Manual               IM_CORREL(3)
2
3
4

NAME

6       im_correl - search for image match
7

SYNOPSIS

9       #include <vips/vips.h>
10
11       int
12       im_correl( IMAGE *ref, IMAGE *sec,
13         int xref, int yref, int xsec, int ysec,
14         int hwindowsize, int hsearchsize,
15         double *correlation, int *x, int *y )
16
17

DESCRIPTION

19       im_correl()  is the base image-searching function used by the mosaicing
20       functions im_lrmosaic() and im_tbmosaic(), and by the matching funtions
21       im_match_linear() and im_match_linear_search().
22
23       It  finds  the  position  of  the  secondary  image sec within ref.  It
24       searches the area around xsec , ysec for the best match  for  the  area
25       around  xref  ,  yref.   It  searches an area of size hsearchsize for a
26       match of size hwindowsize.  The position of the best match is returned,
27       together with the correlation at that point.
28
29       Only  the  first  band  of each image is correlated. ref and sec may be
30       very large --- the function  extracts  and  generated  just  the  parts
31       needed.  Correlation is done with im_spcor(); the position of the maxi‐
32       mum is found with im_maxpos().
33

SEE ALSO

35       im_fastcor(3), im_spcor(3), im_maxpos(3), im_match_linear(3),  im_lrmo‐
36       saic(3).
37

AUTHOR

39       J.Cupitt - 22/02/93
40
42       The National Gallery and Birkbeck College, 1989-1996.
43
44
45
46                                  13 May 1991                     IM_CORREL(3)
Impressum