manpagez: man pages & more
man im_powtra_vec(3)
Home | html | info | man
IM_EXPTRA(3)                                                      IM_EXPTRA(3)




NAME

       im_exp10tra,   im_exptra,   im_expntra,   im_expntra_vec,  im_log10tra,
       im_logtra, im_powtra,  im_powtra_vec  -  logarithmic,  exponential  and
       power transform of an image


SYNOPSIS

       #include <vips/vips.h>

       int im_expntra(in, out, base)
       IMAGE *in, *out;
       double base;

       int im_expntra_vec(in, out, n, vec)
       IMAGE *in, *out;
       int n;
       double *vec;

       int im_exp10tra(in, out)
       IMAGE *in, *out;

       int im_exptra(in, out)
       IMAGE *in, *out;

       int im_log10tra(in, out)
       IMAGE *in, *out;

       int im_logtra(in, out)
       IMAGE *in, *out;

       int im_powtra(in, out, exponent)
       IMAGE *in, *out;
       double exponent;

       int im_powtra_vec(in, out, n, vec)
       IMAGE *in, *out;
       int n;
       double *vec;



DESCRIPTION

       Each  of the above functions maps in through a log or anti-log function
       of some sort and writes the result to out. The size and number of bands
       are unchanged, the output type is float, unless the input is double, in
       which case the output is double. Non-complex images only!

       im_expntra(3) transforms element x of input, to pow(base, x) in output.
       It  detects  division by zero, setting those pixels to zero in the out-
       put. Beware: it does this silently!

       im_expntra_vec(3) works as im_expntra(), but lets you  specify  a  con-
       stant per band.

       im_exp10tra(3)  transforms  element x of input, to pow(10,0, x) in out-
       put. Internally, it is defined in terms of im_expntra().

       im_exptra(3) transforms element x of input, to  pow(e,  x)  in  output,
       where  e  is  the  mathematical  constant. Internally, it is defined in
       terms of im_expntra().

       im_log10tra(3) transforms element x of input, to log10tra(x) in output.

       im_logtra(3) transforms element x of input, to logtra(x) in output.

       im_powtra(3) transforms element x of input, to pow(x, exponent) in out-
       put. It detects division by zero, setting those pixels to zero  in  the
       output. Beware: it does this silently!

       im_powtra_vec(3) works as im_powtra(3), but lets you specify a constant
       per band.



BUGS

       None of the functions checks for under/overflow. Overflow is very  com-
       mon for many of these functions!



RETURN VALUE

       Each function returns 0 on success and -1 on error.


SEE ALSO

       im_add(3),  im_multiply(3),  im_subtract(3), im_lintra(3), im_absim(3),
       im_mean(3), im_max(3).


AUTHOR

       N. Dessipris - 24/04/1991
       J. Cupitt (rewrite) - 21/7/93



                                 24 April 1991                    IM_EXPTRA(3)

im_exp10tra 7.14.5 - Generated Sun Sep 7 09:07:06 CDT 2008
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.