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

feat: add gaussian noise to image #430

Merged
merged 35 commits into from
Jul 13, 2023
Merged

feat: add gaussian noise to image #430

merged 35 commits into from
Jul 13, 2023

Conversation

patrikguempel
Copy link
Contributor

@patrikguempel patrikguempel commented Jul 7, 2023

Closes #381

Summary of Changes

Images can now be modified with "gaussian noise".

@patrikguempel patrikguempel requested a review from a team as a code owner July 7, 2023 07:30
@patrikguempel patrikguempel linked an issue Jul 7, 2023 that may be closed by this pull request
@patrikguempel patrikguempel self-assigned this Jul 7, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 7, 2023

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 2 0 0 1.05s
✅ PYTHON mypy 2 0 2.91s
✅ PYTHON ruff 2 0 0 0.1s
✅ REPOSITORY git_diff yes no 0.07s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@Marsmaennchen221 Marsmaennchen221 changed the title feat: 381 blend & gaussian noise feat: added blend & gaussian noise for Image Jul 7, 2023
@lars-reimann lars-reimann changed the title feat: added blend & gaussian noise for Image feat: add gaussian noise for Image Jul 7, 2023
@lars-reimann lars-reimann changed the title feat: add gaussian noise for Image feat: add gaussian noise to image Jul 7, 2023
@codecov
Copy link

codecov bot commented Jul 7, 2023

Codecov Report

Merging #430 (8006b0d) into main (d71303d) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #430   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           49        49           
  Lines         2665      2676   +11     
=========================================
+ Hits          2665      2676   +11     
Impacted Files Coverage Δ
src/safeds/data/image/containers/_image.py 100.00% <100.00%> (ø)

@lars-reimann lars-reimann force-pushed the 381-add-gaussian-noise branch from f1265c2 to dbba115 Compare July 7, 2023 13:48
@patrikguempel patrikguempel enabled auto-merge (squash) July 12, 2023 17:12
@zzril
Copy link
Contributor

zzril commented Jul 12, 2023

Need to add the new method to the image tutorial also.

Or do we generally create new issues for that? @lars-reimann

@lars-reimann lars-reimann disabled auto-merge July 12, 2023 19:57
@lars-reimann
Copy link
Member

lars-reimann commented Jul 12, 2023

Need to add the new method to the image tutorial also.

Or do we generally create new issues for that? @lars-reimann

No, that should be added as part of this PR now that #419 is merged.

@lars-reimann lars-reimann marked this pull request as draft July 12, 2023 19:59
@lars-reimann lars-reimann marked this pull request as ready for review July 12, 2023 20:23
@lars-reimann lars-reimann force-pushed the 381-add-gaussian-noise branch from ff576c5 to 3b79e29 Compare July 12, 2023 20:24
@lars-reimann
Copy link
Member

It's now added to the "Image Processing" tutorial.

@lars-reimann lars-reimann force-pushed the 381-add-gaussian-noise branch from 3b79e29 to e80d993 Compare July 12, 2023 20:34
@zzril
Copy link
Contributor

zzril commented Jul 12, 2023

Tests fail locally for me (top_level_collect).

@lars-reimann
Copy link
Member

Run poetry install.

@zzril
Copy link
Contributor

zzril commented Jul 12, 2023

Run poetry install.

Ofc, thanks.

zzril
zzril previously approved these changes Jul 12, 2023
Copy link
Contributor

@zzril zzril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

(Small remark about the tests: I think it would generally make sense to always include the edge cases (like giving a standard_deviation of 0) in the test cases.
But we're not doing that consistently anyway, so I'll still accept. Might be sthg for a new issue.)

@lars-reimann
Copy link
Member

Thanks, I've added that edge case too.

Copy link
Contributor

@zzril zzril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lars-reimann lars-reimann merged commit 925a505 into main Jul 13, 2023
@lars-reimann lars-reimann deleted the 381-add-gaussian-noise branch July 13, 2023 07:13
lars-reimann pushed a commit that referenced this pull request Jul 13, 2023
## [0.15.0](v0.14.0...v0.15.0) (2023-07-13)

### Features

* Add copy method for tables ([#405](#405)) ([72e87f0](72e87f0)), closes [#275](#275)
* add gaussian noise to image ([#430](#430)) ([925a505](925a505)), closes [#381](#381)
* add schema conversions when adding new rows to a table and schema conversion when creating a new table ([#432](#432)) ([6e9ff69](6e9ff69)), closes [#404](#404) [#322](#322) [#127](#127) [#322](#322) [#127](#127)
* add test for empty tables for the method `Table.sort_rows` ([#431](#431)) ([f94b768](f94b768)), closes [#402](#402)
* added color adjustment feature ([#409](#409)) ([2cbee36](2cbee36)), closes [#380](#380)
* added test_repr table tests ([#410](#410)) ([cb77790](cb77790)), closes [#349](#349)
* discretize table ([#327](#327)) ([5e3da8d](5e3da8d)), closes [#143](#143)
* Improve error handling of TaggedTable ([#450](#450)) ([c5da544](c5da544)), closes [#150](#150)
* Maintain tagging in methods inherited from `Table` class ([#332](#332)) ([bc73a6c](bc73a6c)), closes [#58](#58)
* new error class `OutOfBoundsError` ([#438](#438)) ([1f37e4a](1f37e4a)), closes [#262](#262)
* rename several `Table` methods for consistency ([#445](#445)) ([9954986](9954986)), closes [#439](#439)
* suggest similar columns if column gets accessed that doesnt exist ([#385](#385)) ([6a097a4](6a097a4)), closes [#203](#203)

### Bug Fixes

* added the missing ids in parameterized tests ([#412](#412)) ([dab6419](dab6419)), closes [#362](#362)
* don't warn if `Imputer` transforms column without missing values ([#448](#448)) ([f0cb6a5](f0cb6a5))
* Warnings raised by underlying seaborn and numpy libraries  ([#425](#425)) ([c4143af](c4143af)), closes [#357](#357)
@lars-reimann
Copy link
Member

🎉 This PR is included in version 0.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lars-reimann lars-reimann added the released Included in a release label Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Included in a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add gaussian noise
6 participants