Logo Search packages:      
Sourcecode: librasterlite version File versions  Download package

local int max_coeff ( int **  channel,
int  channel_size 
)

Find maximal coefficient

This function returns absolute value of maximal wavelet coefficient.

Parameters:
channelChannel
channel_sizeChannel size
Returns:
Maximal coefficient value

Definition at line 38 of file speck.c.

References ABS.

Referenced by speck_encode().

{
    int i, j, max = 0;

    for (i = 0; i < channel_size; i++) {
        for (j = 0; j < channel_size; j++) {
            if (ABS(channel[i][j]) > max) {
                max = ABS(channel[i][j]);
            }
        }
    }

    return max;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index