Function loop9::loop9_img

source ·
pub fn loop9_img<Pixel, Callback>(img: ImgRef<'_, Pixel>, cb: Callback)
where Pixel: Copy, Callback: FnMut(usize, usize, Triple<Pixel>, Triple<Pixel>, Triple<Pixel>),
Expand description

Loop over 9 neighboring pixels in the image described by ImgRef (Img.as_ref())

The callback is: (x, y, previous_row, current_row, next_row)

This function will never panic, if your callback doesn’t panic.