---
name: "im_sines"
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_sines"
---

# im\_sines(3)

creates a spatial sine wave form

## NAME

im\_sines - creates a spatial sine wave form

## SYNOPSIS

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

**int im\_sines(image, xsize, ysize, horfreq, verfreq)**\
 **IMAGE \*image;**\
 **int xsize, ysize;**\
 **double horfreq, verfreq;**

## DESCRIPTION

**im\_sines()** creates a float one band image of the a sine waveform in two dimensions. The sizes of the created image are xsize by ysize.  The number of horizontal and vertical spatial frequencies are determined by the variables horfreq and verfreq respectively.  The function is the base for creating displayable sine waves and square waves in two dimensions.

## RETURN VALUE

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

## SEE ALSO

[im\_grey(3)](/im_grey/3.md).

## COPYRIGHT

N. Dessipris

## AUTHOR

N. Dessipris - 10/05/1991
