A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://libvips.github.io/libvips/API/current/method.Image.quadratic.html below:

Vips.Image.quadratic

Method VipsImagequadratic Declaration [src]
int
vips_quadratic (
  VipsImage* in,
  VipsImage** out,
  VipsImage* coeff,
  ...
)
Description [src]

Transform an image with a 0, 1, 2, or 3rd order polynomial.

The transform we compute:

x = x' + a              : order 0     image shift only
  + b x' + c y'         : order 1     + affine transf.
  + d x' y'             : order 2     + bilinear transf.
  + e x' x' + f y' y'   : order 3     + quadratic transf.

y = y' + g
  + h y' + i x'
  + j y' x'
  + k y' y' + l x' x'

where:

x', y' = coordinates of srcim
x, y   = coordinates of dstim
a .. l = coefficients

The coefficients are in the input matrix, ordered as:

a g
--
b h
c i
--
d j
--
e k
f l

The matrix height may be 1, 3, 4, 6

Optional arguments

This method is not directly available to language bindings.

Parameters
out

Type: VipsImage

Output image.

The argument will be set by the function. The caller of the method takes ownership of the returned data, and is responsible for freeing it.
coeff

Type: VipsImage

Horizontal quadratic.

The data is owned by the caller of the method.
...

Type: 

NULL-terminated list of optional named arguments.

Return value

Type: int

0 on success, -1 on error.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4