pub fn erode_rect_u8(
input: ImageView<'_, u8, 1>,
element: &StructuringElement,
iterations: usize,
border: BorderMode<u8, 1>,
) -> VisionResult<Image<u8, 1>>Expand description
Erodes a grayscale u8 image with a rectangular element in linear time.
This specialized path is independent of the rectangle area and preserves the generic implementation’s anchor, border, iteration, and metadata semantics.