resample

resample — shrink, expand, rotate with a choice of interpolators

Stability Level

Stable, unless otherwise indicated

Synopsis

#include <vips/vips.h>

int                 im_affinei                          (IMAGE *in,
                                                         IMAGE *out,
                                                         VipsInterpolate *interpolate,
                                                         double a,
                                                         double b,
                                                         double c,
                                                         double d,
                                                         double dx,
                                                         double dy,
                                                         int ox,
                                                         int oy,
                                                         int ow,
                                                         int oh);
int                 im_affinei_all                      (IMAGE *in,
                                                         IMAGE *out,
                                                         VipsInterpolate *interpolate,
                                                         double a,
                                                         double b,
                                                         double c,
                                                         double d,
                                                         double dx,
                                                         double dy);
int                 im_stretch3                         (IMAGE *in,
                                                         IMAGE *out,
                                                         double dx,
                                                         double dy);
int                 im_shrink                           (IMAGE *in,
                                                         IMAGE *out,
                                                         double xshrink,
                                                         double yshrink);
int                 im_rightshift_size                  (IMAGE *in,
                                                         IMAGE *out,
                                                         int xshift,
                                                         int yshift,
                                                         int band_fmt);
int                 im_match_linear                     (IMAGE *ref,
                                                         IMAGE *sec,
                                                         IMAGE *out,
                                                         int xr1,
                                                         int yr1,
                                                         int xs1,
                                                         int ys1,
                                                         int xr2,
                                                         int yr2,
                                                         int xs2,
                                                         int ys2);
int                 im_match_linear_search              (IMAGE *ref,
                                                         IMAGE *sec,
                                                         IMAGE *out,
                                                         int xr1,
                                                         int yr1,
                                                         int xs1,
                                                         int ys1,
                                                         int xr2,
                                                         int yr2,
                                                         int xs2,
                                                         int ys2,
                                                         int hwindowsize,
                                                         int hsearchsize);

Description

Resample an image in various ways, using a VipsInterpolator to generate intermediate values.

Details

im_affinei ()

int                 im_affinei                          (IMAGE *in,
                                                         IMAGE *out,
                                                         VipsInterpolate *interpolate,
                                                         double a,
                                                         double b,
                                                         double c,
                                                         double d,
                                                         double dx,
                                                         double dy,
                                                         int ox,
                                                         int oy,
                                                         int ow,
                                                         int oh);

im_affinei_all ()

int                 im_affinei_all                      (IMAGE *in,
                                                         IMAGE *out,
                                                         VipsInterpolate *interpolate,
                                                         double a,
                                                         double b,
                                                         double c,
                                                         double d,
                                                         double dx,
                                                         double dy);

im_stretch3 ()

int                 im_stretch3                         (IMAGE *in,
                                                         IMAGE *out,
                                                         double dx,
                                                         double dy);

im_shrink ()

int                 im_shrink                           (IMAGE *in,
                                                         IMAGE *out,
                                                         double xshrink,
                                                         double yshrink);

im_rightshift_size ()

int                 im_rightshift_size                  (IMAGE *in,
                                                         IMAGE *out,
                                                         int xshift,
                                                         int yshift,
                                                         int band_fmt);

im_match_linear ()

int                 im_match_linear                     (IMAGE *ref,
                                                         IMAGE *sec,
                                                         IMAGE *out,
                                                         int xr1,
                                                         int yr1,
                                                         int xs1,
                                                         int ys1,
                                                         int xr2,
                                                         int yr2,
                                                         int xs2,
                                                         int ys2);

im_match_linear_search ()

int                 im_match_linear_search              (IMAGE *ref,
                                                         IMAGE *sec,
                                                         IMAGE *out,
                                                         int xr1,
                                                         int yr1,
                                                         int xs1,
                                                         int ys1,
                                                         int xr2,
                                                         int yr2,
                                                         int xs2,
                                                         int ys2,
                                                         int hwindowsize,
                                                         int hsearchsize);