Skip to main content

adaptive_threshold_integral

Function adaptive_threshold_integral 

Source
pub fn adaptive_threshold_integral(
    img: &ImageView<'_>,
    integral: &[u64],
    output: &mut [u8],
    radius: usize,
    c: i16,
)
Expand description

Apply per-pixel adaptive threshold using integral image.

Optimized with parallel processing and branchless thresholding. Apply per-pixel adaptive threshold using integral image.

Optimized with parallel processing, interior-loop vectorization, and fixed-point arithmetic.