1mlib_ImageScale_Fp_Inp(3MLImBe)diaLib Library Functiomnlsib_ImageScale_Fp_Inp(3MLIB)
2
3
4

NAME

6       mlib_ImageScale_Fp_Inp - linear scaling, in place
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_ImageScale_Fp_Inp(mlib_image *srcdst,
13            const mlib_d64 *alpha, const mlib_d64 *beta);
14
15

DESCRIPTION

17       The  mlib_ImageScale_Fp_Inp()  function  performs a floating-point, in-
18       place linear scaling on the pixels of the source image  by  multiplying
19       the data by a scale factor, shifting, and then adding an offset.
20
21
22       The following equation is used:
23
24         srcdst[x][y][i] = srcdst[x][y][i] * alpha[i] + beta[i]
25
26
27
28       If the result of the operation underflows/overflows the minimum/maximum
29       value supported by the destination image, then it will  be  clamped  to
30       the minimum/maximum value respectively.
31
32
33       The image can be of type MLIB_FLOAT or MLIB_DOUBLE.
34

PARAMETERS

36       The function takes the following arguments:
37
38       srcdst    Pointer to source and destination image.
39
40
41       alpha     Scaling  factor.  alpha[i]  contains  the  scaling factor for
42                 channel i.
43
44
45       beta      Offset value. beta[i] contains the offset for channel i.
46
47

RETURN VALUES

49       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
50       MLIB_FAILURE.
51

ATTRIBUTES

53       See attributes(5) for descriptions of the following attributes:
54
55
56
57
58       ┌─────────────────────────────┬─────────────────────────────┐
59       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
60       ├─────────────────────────────┼─────────────────────────────┤
61       │Interface Stability          │Committed                    │
62       ├─────────────────────────────┼─────────────────────────────┤
63       │MT-Level                     │MT-Safe                      │
64       └─────────────────────────────┴─────────────────────────────┘
65

SEE ALSO

67       mlib_ImageScale(3MLIB),                      mlib_ImageScale_Fp(3MLIB),
68       mlib_ImageScale_Inp(3MLIB),                    mlib_ImageScale2(3MLIB),
69       mlib_ImageScale2_Inp(3MLIB), attributes(5)
70
71
72
73SunOS 5.11                        2 Mar 2007     mlib_ImageScale_Fp_Inp(3MLIB)
Impressum