Expand description
Adaptive thresholding implementation. Adaptive thresholding and image binarization.
This module provides the first stage of the detection pipeline, converting grayscale input into binary images while adapting to local lighting conditions.
It features two primary implementations:
- Tile-based Thresholding: Blazing fast approach using local tile stats.
- Integral Image Thresholding: Per-pixel adaptive thresholding for small features.
Structs§
- Threshold
Engine - Adaptive thresholding engine using tile-based stats.
- Tile
Stats - Statistics for a single tile.
Functions§
- adaptive_
threshold_ gradient_ window - Apply per-pixel adaptive threshold with gradient-based window sizing.
- adaptive_
threshold_ integral - Apply per-pixel adaptive threshold using integral image.
- apply_
adaptive_ threshold_ fast - Fast adaptive threshold combining integral image approach with SIMD.
- apply_
adaptive_ threshold_ with_ params - Adaptive threshold with custom parameters.
- compute_
integral_ image - Compute integral image (cumulative sum) for fast box filter computation.
- compute_
threshold_ map - Compute a map of local mean values.