Function imgproc_rs::filter::alpha_trimmed_mean_filter[][src]

pub fn alpha_trimmed_mean_filter(
    input: &Image<u8>,
    radius: u32,
    alpha: u32
) -> ImgProcResult<Image<u8>>

Applies an alpha-trimmed mean filter, where each output pixel is the mean of the pixels in a (2 * radius + 1) x (2 * radius + 1) kernel in the input image, with the lowest alpha / 2 pixels and the highest alpha / 2 pixels removed.