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

Intensity to height converter with better artistic style #699

Merged
merged 7 commits into from
Sep 5, 2023
Merged

Intensity to height converter with better artistic style #699

merged 7 commits into from
Sep 5, 2023

Conversation

mthaier
Copy link
Contributor

@mthaier mthaier commented Sep 4, 2023

  • waveIntensity maximum amplitude for a wave.
  • Got rid of maxHeight

Old style: max wave amplitude is maxHeight, and 'z_scale' is determined by average color of a rect area that's directly relative to maxHeight:
Before

New style: max wave amplitude is waveIntensity, and 'z_scale' is determined by average color of a line of pixels:
After

Although it's a mere artistic choice, I prefer my style since it can capture details better(notice in the second-second image how you can still see the face even with high "Wave Spacing" value).

i-make-robots and others added 3 commits September 3, 2023 13:03
Edited 'Converter_IntensityToHeight.java'

Better Converter_IntensityToHeight implementation at capturing image details with less space calculations.

previous version determines 'z_scale' based on the average color of a rect, my method determines it based on a horizontal line average color;

Thus, I got rid of 'maxHeight' and added 'waveIntensity'
@i-make-robots
Copy link
Contributor

This is a well done PR. please update from the parent branch.

@i-make-robots
Copy link
Contributor

so you changed the name of maxHeight to waveIntensity? I'm still confused what this does. I don't seem to be able to get this branch to test what you've done. I'm doing something wrong and I feel a little dumb...

@mthaier
Copy link
Contributor Author

mthaier commented Sep 4, 2023

so you changed the name of maxHeight to waveIntensity? I'm still confused what this does. I don't seem to be able to get this branch to test what you've done. I'm doing something wrong and I feel a little dumb...

  • No; waveIntensity is much different than maxHeight although they're meant to partially represent a similar concept which is the maximum amplitude of a wave.

  • Got rid of maxHeight and all its relatives(such as its slider and getters\setters, translator reference..etc).

  • Explaining the artistic difference would be much easier in a call so let me know when you're up for a discord call.

@i-make-robots i-make-robots merged commit a40e1ff into MarginallyClever:master Sep 5, 2023
1 check passed
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