[][src]Function simplecv::filter::filter_

pub fn filter_<S, T, K>(
    src: &ArrayBase<S, Ix2>,
    kernel: &ArrayBase<K, Ix2>,
    border: BorderType,
    out: &mut ArrayBase<T, Ix2>
) where
    S: Data<Elem = f64>,
    T: DataMut<Elem = f64>,
    K: Data<Elem = f64>, 

Apply a linear filter to the source image.

out must have the exactly same shape of src. Both the src and kernel should be 2D array. For more channels you may need to write a wrapper by yourself.

The method of dealing with border situation is selected by border. By setting border=Reflect, you will get the default result of OpenCV.