Method
VipsImagemosaic1
Declaration [src]
int
vips_mosaic1 (
VipsImage* ref,
VipsImage* sec,
VipsImage** out,
VipsDirection direction,
int xr1,
int yr1,
int xs1,
int ys1,
int xr2,
int yr2,
int xs2,
int ys2,
...
)
Description [src]
This operation joins two images top-bottom (with sec on the right)
or left-right (with sec at the bottom)
given an approximate pair of tie-points. sec is scaled and rotated as
necessary before the join.
If search is TRUE, before performing the transformation, the tie-points
are improved by searching an area of sec of size harea for a
object of size hwindow in ref.
mblend limits the maximum size of the
blend area. A value of “-1” means “unlimited”. The two images are blended
with a raised cosine.
Pixels with all bands equal to zero are “transparent”, that is, zero pixels in the overlap area do not contribute to the merge. This makes it possible to join non-rectangular images.
If the number of bands differs, one of the images must have one band. In this case, an n-band image is formed from the one-band image by joining n copies of the one-band image together, and then the two n-band images are operated upon.
The two input images are cast up to the smallest common type (see table Smallest common format in arithmetic).
Optional arguments
search:gboolean, search to improve tie-pointshwindow:gint, half window sizeharea:gint, half search sizeinterpolate:VipsInterpolate, interpolate pixels with thismblend:gint, maximum blend size
See also
This method is not directly available to language bindings.
Parameters
sec-
Type:
VipsImageSecondary image.
The data is owned by the caller of the method. out-
Type:
VipsImageOutput image.
The data is owned by the caller of the method. direction-
Type:
VipsDirectionHorizontal or vertical join.
xr1-
Type:
intFirst reference tie-point.
yr1-
Type:
intFirst reference tie-point.
xs1-
Type:
intFirst secondary tie-point.
ys1-
Type:
intFirst secondary tie-point.
xr2-
Type:
intSecond reference tie-point.
yr2-
Type:
intSecond reference tie-point.
xs2-
Type:
intSecond secondary tie-point.
ys2-
Type:
intSecond secondary tie-point.
...-
Type:
NULL-terminated list of optional named arguments.