pub fn loop9_img<Pixel, Callback>(img: ImgRef<'_, Pixel>, cb: Callback)
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.