pub type ResizeFn = dyn Fn(ImgRef<'_, u8>, usize, usize) -> ImgVec<u8>;
The resize callback type: takes a grayscale source image and target dimensions, returns the resized grayscale image.