Skip to main content

BoxCarAvg

Function BoxCarAvg 

Source
pub unsafe extern "C" fn BoxCarAvg(
    avgarr: *mut *mut f32,
    padarr: *mut *mut f32,
    nrow: c_long,
    ncol: c_long,
    krow: c_long,
    kcol: c_long,
) -> c_int
Expand description

Takes in a 2-D array, convolves with boxcar filter of size specified. Uses a recursion technique (but the function does not actually call itself recursively) to compute the result, so there may be roundoff errors.