boostorg / gil

Boost.GIL - Generic Image Library | Requires C++14 since Boost 1.80
https://boostorg.github.io/gil
Boost Software License 1.0
178 stars 164 forks source link

feat: Generalized threshold algorithm for all kind of pixel types #701

Open marco-langer opened 2 years ago

marco-langer commented 2 years ago

Description

This PR implements the channel traits min and max values for binary, truncate and adaptive thresholds and thereby extends the possible pixel types for these algorithms.

The current test cases are all green, but I will also add new test cases for floating point types and signed integer types soon.

References

Closes #697

Tasklist

codecov[bot] commented 2 years ago

Codecov Report

Merging #701 (f37758d) into develop (4dbf35a) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop     #701   +/-   ##
========================================
  Coverage    80.93%   80.94%           
========================================
  Files          116      116           
  Lines         5130     5132    +2     
========================================
+ Hits          4152     4154    +2     
  Misses         978      978