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].
::: tip “Optional arguments”
* hfreq: gdouble, horizontal frequency
* vreq: gdouble, vertical frequency
* uchar: gboolean, output a uchar image
::: seealso
vips_grey(), vips_xyz().
Parameters
out |
VipsImage |
Output image. |
|
| The argument will be set by the function. | |
| The called function takes ownership of the data, and is responsible for freeing it. | |
width |
int |
Image size. |
|
height |
int |
Image size. |
|
... |
none |
|