Constructor
VipsImagexyz
Declaration [src]
int
vips_xyz (
VipsImage** out,
int width,
int height,
...
)
Description [src]
Create a two-band uint32 image where the elements in the first band have the value of their x coordinate and elements in the second band have their y coordinate.
You can make any image where the value of a pixel is a function of its (x, y) coordinate by combining this operator with the arithmetic operators.
Set csize, dsize, esize to generate higher dimensions and add more
bands. The extra dimensions are placed down the vertical axis. Use
vips_grid() to change the layout.
::: tip “Optional arguments”
* csize: gint, size for third dimension
* dsize: gint, size for fourth dimension
* esize: gint, size for fifth dimension
::: seealso
vips_grey(), vips_grid(), vips_identity().
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 |
Horizontal size. |
|
height |
int |
Vertical size. |
|
... |
none |
|