pub fn kernel_centre(rows: usize, cols: usize) -> (usize, usize)
Get the centre of a kernel. Determines the pixel to be modified as a window is moved over an image