pub fn integral_image(input: &Tensor) -> Result<Tensor, ImgProcError>Expand description
Compute integral image (summed area table). Input: [H, W].
Computes the integral (summed-area table) image from a [H, W, 1] tensor.
Uses a two-pass approach:
- Horizontal prefix sums per row (parallelized for large images)
- Vertical accumulation using SIMD