Function imgproc_rs::morphology::majority[][src]

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

Sets output pixel to the majority-valued pixel in the input image under a kernel of size (2 * radius + 1) x (2 * radius + 1)