Implementation of threshold_binary and threshold_truncate by miralshah365 · Pull Request #313 · boostorg/gil
Merged
mloskot merged 2 commits intoboostorg:developfrom
miralshah365:gsoc2019/miralshah365/binary-threshold
Jun 18, 2019Conversation
Description
Two variant of Binary threshold Implemented
- Simple Binary Threshold
If the pixel value is more than the threshold then the pixel value is set to maximum or else to 0 - Inverse Binary Threshold
If the pixel value is more than the threshold then the pixel value is set to 0 or else to maximum
Two Truncation threshold Implemented
- Threshold Truncate
If the pixel value is more than the threshold then it is truncated if the direction specified is regular. If the direction is in inverse then values below the thresholds are truncated. - Truncation to zero
If the pixel value is less than the threshold then it is set to zero if the direction specified is regular. If the direction is in inverse then values above the thresholds are set to zero.
References
Tasklist
- Add test case(s)
- Ensure all CI builds pass
- Review and approve
Add public functions threshold_binary and threshold_truncate. Add tests and example. Closes #310
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This work is ready for approval.
It has been already reviewed as PR at BoostGSoC19#1 and this PR is just a copy following the decision and agreement to work from Miral's private fork and submit against upstream repo.
mloskot
marked this pull request as ready for review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters