1IM_GREY(3) Library Functions Manual IM_GREY(3)
2
3
4
6 im_grey, im_fgrey, im_make_xy - creates a grey scale
7
9 #include <vips/vips.h>
10
11 int im_grey( image, xsize, ysize )
12 IMAGE *image;
13 int xsize, ysize;
14
15 int im_fgrey( image, xsize, ysize )
16 IMAGE *image;
17 int xsize, ysize;
18
19 int im_make_xy( image, xsize, ysize )
20 IMAGE *image;
21 int xsize, ysize;
22
23
25 im_grey(3) creates a one-band FMTUCHAR grey scale image of sizes xsize
26 by ysize. The intensity varies from 0 (left) to 255 (right).
27
28 im_fgrey(3) works as im_grey(3), except that the output image is FMT‐
29 FLOAT, allowing pixel values from 0 (left) to 1.0 (right).
30
31 im_make_xy(3) makes a two-band FMTUINT image where each pixel in band 0
32 has a value equal to the x coordinate, and each pixel in band 1 has a
33 value equal to the y coordinate.
34
35
37 The function returns 0 on success and -1 on error.
38
40 im_black(3)
41
43 Birkbeck College and the National Gallery, 1995
44
45
46
47 10 May 1991 IM_GREY(3)