|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::vector< float > MayaFlux::Kinesis::Vision::threshold_adaptive | ( | std::span< const float > | gray, |
| uint32_t | w, | ||
| uint32_t | h, | ||
| uint32_t | block_size, | ||
| float | offset | ||
| ) |
Adaptive threshold using local block mean minus offset.
Each pixel is thresholded against the mean of its block_size x block_size neighbourhood minus offset. Pixels at the border use a clamped neighbourhood.
| gray | Single-channel float span, size must be w * h. |
| w | Image width in pixels. |
| h | Image height in pixels. |
| block_size | Neighbourhood size in pixels. Must be odd and >= 3. |
| offset | Subtracted from local mean before comparison. |
Definition at line 290 of file PixelOps.cpp.
References block_size, h, offset, and threshold_adaptive().
Here is the call graph for this function: