spice::threshold namespace

Includes functions for determining thresholds as well as segmenting images according to a pre-determined threshold.

Contents

Functions

template<size_t Channels>
auto adaptive(image<float, Channels>& input, float threshold, int radius) -> image<float, Channels>
Segment the image channel-wise using an adaptive thresholding mechanism.

Function documentation

template<size_t Channels>
image<float, Channels> spice::threshold::adaptive(image<float, Channels>& input, float threshold, int radius)

Segment the image channel-wise using an adaptive thresholding mechanism.

Template parameters
Channels
Parameters
input
threshold
radius
Returns image<float, Channels>

The implemented algorithm is adapted from the paper "Adaptive Thresholding Using the Integral Image" by Bradley and Roth