Constructor
VipsImagesines
Declaration [src]
int
vips_sines (
VipsImage** out,
int width,
int height,
...
)
Description [src]
Creates a float one band image of the a sine waveform in two dimensions.
The number of horizontal and vertical spatial frequencies are
determined by the variables hfreq and vfreq respectively. The
function is useful for creating displayable sine waves and
square waves in two dimensions.
If horfreq and verfreq are integers the resultant image is periodical and therefore the Fourier transform does not present spikes
Pixels are normally in [-1, +1], set uchar to output [0, 255].
Optional arguments
hfreq:gdouble, horizontal frequencyvreq:gdouble, vertical frequencyuchar:gboolean, output a uchar image
See also
This constructor is not directly available to language bindings.
Parameters
out-
Type:
VipsImageOutput image.
The argument will be set by the function. The caller of the function takes ownership of the returned data, and is responsible for freeing it. width-
Type:
intImage size.
height-
Type:
intImage size.
...-
Type:
NULL-terminated list of optional named arguments.