ThresholdDirection
pub enum ThresholdDirection
Which side of a region's threshold is counted.
The comparison is strict on both sides, so Above and Below at
one threshold never both count the same pixel.
ThresholdDirection — variants
Above
Pixels strictly warmer than the threshold.
Below
Pixels strictly cooler than it.