1IM_VIPS2MASK(3)            Library Functions Manual            IM_VIPS2MASK(3)
2
3
4

NAME

6       im_vips2mask, im_mask2vips - convert between masks and images
7

SYNOPSIS

9       #include <vips/vips.h>
10
11       DOUBLEMASK *im_vips2mask( IMAGE *in, char *out_name )
12
13       int im_mask2vips( DOUBLEMASK *in, IMAGE *out )
14

DESCRIPTION

16       im_vips2mask()  returns  a  DOUBLEMASK  of name out_name containing the
17       data from IMAGE in. One band FMTDOUBLE images  only.  Returns  NULL  on
18       error,  and  a  new mask on success.  The scale field is set to 1.0 and
19       the offset to 0.0.
20
21       im_mask2vips() writes the doubles held in mask in to the IMAGE out.  It
22       creates  a  one-band image of the same size as in. It returns 0 on suc‐
23       cess and -1 on error. The scale and offset fields are ignored.
24
25

SEE ALSO

27       im_openin(3),   im_openout(3),   im_setbuf(3),    edvips(3),    im_cre‐
28       ate_dmask(3).
29
31       National Gallery, 1994
32
33
34
35                                  6 June 1994                  IM_VIPS2MASK(3)
Impressum