Method

VipsImagematch

Declaration [src]

int
vips_match (
  VipsImage* ref,
  VipsImage* sec,
  VipsImage** out,
  int xr1,
  int yr1,
  int xs1,
  int ys1,
  int xr2,
  int yr2,
  int xs2,
  int ys2,
  ...
)

Description [src]

Optional arguments:

  • search: search to improve tie-points
  • hwindow: half window size
  • harea: half search size
  • interpolate: interpolate pixels with this

Scale, rotate and translate sec so that the tie-points line up.

If search is TRUE, before performing the transformation, the tie-points are improved by searching an area of sec of size harea for a match of size hwindow to ref.

This function will only work well for small rotates and scales.

This method is not directly available to language bindings.

Parameters

sec VipsImage
 

Secondary image.

 The data is owned by the caller of the function.
out VipsImage
 

Output image.

 The argument will be set by the function.
 The instance takes ownership of the data, and is responsible for freeing it.
xr1 int
 

First reference tie-point.

yr1 int
 

First reference tie-point.

xs1 int
 

First secondary tie-point.

ys1 int
 

First secondary tie-point.

xr2 int
 

Second reference tie-point.

yr2 int
 

Second reference tie-point.

xs2 int
 

Second secondary tie-point.

ys2 int
 

Second secondary tie-point.

...
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.