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

Updates in Pattern Distortion Pipeline #276

Merged
merged 8 commits into from
Apr 24, 2023
Merged

Updates in Pattern Distortion Pipeline #276

merged 8 commits into from
Apr 24, 2023

Conversation

ss756
Copy link
Contributor

@ss756 ss756 commented Apr 19, 2023

resolves #242

This PR contains updates for Pattern Distortion pipeline, such that it can handle gray-scale images as well. The parameters of each function is randomized in call() instead of init() function, so that it has different values in each run.
Made changes to the docs.

@ss756 ss756 requested review from jboarman and kwcckw April 19, 2023 16:36
@ss756 ss756 added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request refactoring Cleanup to improve code quality without adding new funtionality labels Apr 19, 2023
@ss756 ss756 self-assigned this Apr 19, 2023
[True, False],
) # randomly select to apply Perlin Noise on top of the Tessellation
else:
self.perlin = False
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think here should be self.perlin = self.noise_type because if user set True on perlin, we need to get it here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @kwcckw, the only option we are giving the user is to select the noise_type. It will either be None or "random" for now. If it is random, then Perlin Noise may or may not be added. It is None or any other value, Perlin Noise is not added.

Explicitly the user cannot select True for Noise_type. What I would suggest is that the user selects noise_type = "perlin" so that perlin noise is integrated. Is this ok ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, this should work, so you need to mention this in the class descriptions too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes @kwcckw i will add this to the class description

if self.noise_type == "random":
self.perlin = random.choice([True, False])
else:
self.perlin = False
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is similar with the issue i mentioned above.

@kwcckw kwcckw merged commit ae5aa8b into sparkfish:dev Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request refactoring Cleanup to improve code quality without adding new funtionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Pattern-based Distortion Generator
2 participants