Constructor
VipsImageidentity
Declaration [src]
int
vips_identity (
VipsImage** out,
...
)
Description [src]
Creates an identity lookup table, ie. one which will leave an image
unchanged when applied with vips_maplut(). Each entry in the table
has a value equal to its position.
Use the arithmetic operations on these tables to make LUTs representing arbitrary functions.
Normally LUTs are 8-bit. Set ushort to create a 16-bit table.
Normally 16-bit tables have 65536 entries. You can set this smaller with
size.
::: tip “Optional arguments”
* bands: gint, number of bands to create
* ushort: gboolean, TRUE for an unsigned short identity
* size: gint, number of LUT elements for a ushort image
::: seealso
vips_xyz(), vips_maplut().
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. | |
... |
none |
|