pub fn spatial_gradient_u8_into(
input: ImageView<'_, u8, 1>,
border: BorderMode<u8, 1>,
gradient_x: &mut [i16],
gradient_y: &mut [i16],
) -> VisionResult<()>Expand description
Computes exact paired 3×3 Sobel gradients into caller-owned packed output.
Both output slices must contain exactly input.width() * input.height()
elements and must not overlap each other. Safe Rust borrowing prevents the
u8 input from aliasing either i16 output.