---
name: "im_stretch3"
section: "3"
platform: "linux"
package: "libvips-dev"
version: "7.20.7-1+b3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/im_stretch3"
---

# im\_stretch3(3)

stretch horizontally by 3%, displace sub-pixel mask

## NAME

im\_stretch3 -  stretch horizontally by 3%, displace sub-pixel mask

## SYNOPSIS

\#include \<vips/vips.h\>

int im\_stretch3( in, out, xdisp, ydisp )\
 IMAGE \*in, \*out;\
 double xdisp, ydisp;

## DESCRIPTION

im\_stretch3() stretches the input image by 3% horizontally, and displaces it by xdisp/ydisp. It uses bi-cubic interpolation, but runs quickly. It works only for unsigned short images.

This function is part of the MARC acquisition software, but is generally useful for squaring up the pixels in images from the Kontron ProgRes camera range.

## RETURN VALUE

The function returns 0 on success and -1 on error.

## SEE ALSO

[im\_conv(3)](/im_conv/3.md), [im\_shrink(3)](/im_shrink/3.md).

## COPYRIGHT

The National Gallery, 1997
