manpagez: man pages & more
man im_mask2vips(3)
Home | html | info | man
im_vips2mask(3)                                                im_vips2mask(3)




NAME

       im_vips2mask, im_mask2vips - convert between masks and images


SYNOPSIS

       #include <vips/vips.h>

       DOUBLEMASK *im_vips2mask( IMAGE *in, char *out_name )

       int im_mask2vips( DOUBLEMASK *in, IMAGE *out )


DESCRIPTION

       im_vips2mask(3)  returns  a  DOUBLEMASK of name out_name containing the
       data from IMAGE in.  Images must have either one band, a width of 1, or
       a  height of 1.  Returns NULL on error, and a new mask on success.  The
       scale field is set to 1.0 and the offset to 0.0.

       im_mask2vips(3) writes the doubles held in mask in to the IMAGE out. It
       creates  a  one-band image of the same size as in. It returns 0 on suc-
       cess and -1 on error. The scale and offset fields are ignored.



SEE ALSO

       im_openin(3),   im_openout(3),   im_setbuf(3),    edvips(3),    im_cre-
       ate_dmask(3).


COPYRIGHT

       National Gallery, 1994



                                  6 June 1994                  im_vips2mask(3)

im_vips2mask 7.14.5 - Generated Sun Sep 7 19:30:43 CDT 2008
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.