8000 Improve Convolution Filters by aleju · Pull Request #632 · aleju/imgaug · GitHub
[go: up one dir, main page]

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

Improve Convolution Filters #632

Merged
merged 2 commits into from
Apr 22, 2020
Merged

Improve Convolution Filters #632

merged 2 commits into from
Apr 22, 2020

Conversation

aleju
Copy link
Owner
@aleju aleju commented Feb 29, 2020

This patch reworks the backend of all convolutional
filters. It extracts the convolution logic out of
Convolve and moves it into the new function
imgaug.augmenters.convolutional.convolve_() (with
non-in-place version convolve()).

The logic is also reworked so that fewer convolution
function calls and more in-place modification is
used. This should lead to an improved performance.

These changes also affect Sharpen, Emboss,
EdgeDetect, DirectedEdgeDetect and MotionBlur.

Add functions:

  • imgaug.augmenters.convolutional.convolve_()
  • imgaug.augmenters.convolutional.convolve()

This patch reworks the backend of all convolutional
filters. It extracts the convolution logic out of
`Convolve` and moves it into the new function
`imgaug.augmenters.convolutional.convolve_()` (with
non-in-place version `convolve()`).

The logic is also reworked so that fewer convolution
function calls and more in-place modification is
used. This should lead to an improved performance.

These changes also affect `Sharpen`, `Emboss`,
`EdgeDetect`, `DirectedEdgeDetect` and `MotionBlur`.

Add functions:
* `imgaug.augmenters.convolutional.convolve_()`
* `imgaug.augmenters.convolutional.convolve()`
@codecov-io
Copy link
codecov-io commented Feb 29, 2020

Codecov Report

Merging #632 into master will increase coverage by <.01%.
The diff coverage is 98%.

@@            Coverage Diff             @@
##           master     #632      +/-   ##
==========================================
+ Coverage   96.37%   96.37%   +<.01%     
==========================================
  Files          41       41              
  Lines       14683    14698      +15     
==========================================
+ Hits        14150    14165      +15     
  Misses        533      533

@aleju aleju merged commit 8406dbf into master Apr 22, 2020
@aleju aleju deleted the improve_convolutional branch April 22, 2020 19:21
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.

2 participants
0