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

Add PIL module #538

Merged
merged 1 commit into from
Jan 6, 2020
Merged

Add PIL module #538

merged 1 commit into from
Jan 6, 2020

Conversation

aleju
Copy link
Owner

@aleju aleju commented Dec 26, 2019

This patch introduces the module
imgaug.augmenters.pillike, which contains augmenters
and augmentation functions that are guaranteed to
have identical outputs to the corresponding PIL
functions. They often -- but not necessarily --
wrap PIL functions.

Move functions and augmenters:

  • Move equalize_() and equalize() functions to
    the new module.
  • Move autocontrast() to the new module.
  • Move Equalize to the new module.
  • Move Autocontrast to the new module.

Add the following functions to the new module:

  • equalize
  • equalize_
  • autocontrast
  • autocontrast_
  • solarize
  • solarize_
  • posterize
  • posterize_
  • enhance_color
  • enhance_contrast
  • enhance_brightness
  • enhance_sharpness
  • filter_blur
  • filter_smooth
  • filter_smooth_more
  • filter_edge_enhance
  • filter_edge_enhance_more
  • filter_find_edges
  • filter_contour
  • filter_emboss
  • filter_sharpen
  • filter_detail
  • warp_affine

Add the following augmenters to the new module:

  • Solarize
  • Posterize.
    (Alias for color.Posterize.)
  • Equalize
  • Autocontrast
  • EnhanceColor
  • EnhanceContrast
  • EnhanceBrightness
  • EnhanceSharpness
  • FilterBlur
  • FilterSmooth
  • FilterSmoothMore
  • FilterEdgeEnhance
  • FilterEdgeEnhanceMore
  • FilterFindEdges
  • FilterContour
  • FilterEmboss
  • FilterSharpen
  • FilterDetail
  • Affine

@codecov-io
Copy link

codecov-io commented Dec 26, 2019

Codecov Report

Merging #538 into master will increase coverage by 0.8%.
The diff coverage is 96.4%.

@@            Coverage Diff            @@
##           master     #538     +/-   ##
=========================================
+ Coverage   96.35%   97.15%   +0.8%     
=========================================
  Files          37       38      +1     
  Lines       13369    19673   +6304     
=========================================
+ Hits        12881    19113   +6232     
- Misses        488      560     +72

@aleju aleju changed the title [WIP] Add PIL module Add PIL module Jan 5, 2020
This patch introduces the module
imgaug.augmenters.pillike, which contains augmenters
and augmentation functions that are guaranteed to
have identical outputs to the corresponding PIL
functions. They often -- but not necessarily --
wrap PIL functions.

Move functions and augmenters:
* Move equalize_() and equalize() functions to
  the new module.
* Move autocontrast() to the new module.
* Move Equalize to the new module.
* Move Autocontrast to the new module.

Add the following functions to the new module:
* `equalize`
* `equalize_`
* `autocontrast`
* `autocontrast_`
* `solarize`
* `solarize_`
* `posterize`
* `posterize_`
* `enhance_color`
* `enhance_contrast`
* `enhance_brightness`
* `enhance_sharpness`
* `filter_blur`
* `filter_smooth`
* `filter_smooth_more`
* `filter_edge_enhance`
* `filter_edge_enhance_more`
* `filter_find_edges`
* `filter_contour`
* `filter_emboss`
* `filter_sharpen`
* `filter_detail`
* `warp_affine`

Add the following augmenters to the new module:
* `Solarize`
* `Posterize`.
  (Alias for `color.Posterize`.)
* `Equalize`
* `Autocontrast`
* `EnhanceColor`
* `EnhanceContrast`
* `EnhanceBrightness`
* `EnhanceSharpness`
* `FilterBlur`
* `FilterSmooth`
* `FilterSmoothMore`
* `FilterEdgeEnhance`
* `FilterEdgeEnhanceMore`
* `FilterFindEdges`
* `FilterContour`
* `FilterEmboss`
* `FilterSharpen`
* `FilterDetail`
* `Affine`
@aleju aleju merged commit 54e9b14 into master Jan 6, 2020
@aleju aleju deleted the pil_module branch January 6, 2020 13:30
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