Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor Niblack using the functor API #42

Merged
merged 2 commits into from
Jul 29, 2019
Merged

refactor Niblack using the functor API #42

merged 2 commits into from
Jul 29, 2019

Conversation

johnnychen94
Copy link
Member

This is a PR-commit for PR #29 that refactors the whole codebase to use the new functor API, which is discussed in more details in #26 and explained in my GSoC 2019 blog

Changes:

  • support Color3 input
  • move implementations into functor
  • enhance the test codes with wider test coverage, the old test cases are preserved

Deprecations:

  • move window_size from Niblack to binarize

We could adopt this PR first and then create further PRs for #41.

This is a PR-commit for PR
#29 that
refactors the whole codebase to use the new functor API, which
is discussed in more details in
#26 and
explained in my [GSoC 2019
blog](https://nextjournal.com/johnnychen94/the-principles-of-imagesjl-part-i)

Changes:

* support `Color3` input
* move implementations into functor
* enhance the test codes with wider test coverage

Breaking changes:

* move `window_size` out of `Niblack`
@codecov
Copy link

codecov bot commented Jul 26, 2019

Codecov Report

Merging #42 into api will increase coverage by 9.65%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              api      #42      +/-   ##
==========================================
+ Coverage   70.55%   80.21%   +9.65%     
==========================================
  Files          20       20              
  Lines         180      187       +7     
==========================================
+ Hits          127      150      +23     
+ Misses         53       37      -16
Impacted Files Coverage Δ
src/util.jl 100% <ø> (ø) ⬆️
src/niblack.jl 100% <100%> (+100%) ⬆️
src/deprecations.jl 75% <100%> (+8.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 07704cb...628424f. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Jul 26, 2019

Codecov Report

Merging #42 into api will increase coverage by 9.65%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              api      #42      +/-   ##
==========================================
+ Coverage   70.55%   80.21%   +9.65%     
==========================================
  Files          20       20              
  Lines         180      187       +7     
==========================================
+ Hits          127      150      +23     
+ Misses         53       37      -16
Impacted Files Coverage Δ
src/util.jl 100% <ø> (ø) ⬆️
src/niblack.jl 100% <100%> (+100%) ⬆️
src/deprecations.jl 75% <100%> (+8.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 07704cb...628424f. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant