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

Fix and extend flow derivatives and losses #117

Merged
merged 4 commits into from
Aug 31, 2023

Conversation

aschuh-hf
Copy link
Collaborator

  • Add flow_derivatives() with default spacing for finite differences calculation assuming a normalized flow field.
  • Add curl(), divergence(), and divergence_free_flow() functions to core library.
  • Modify finite_differences() to pad input using replicate instead of padding output with zeros.
  • Add mode='forward_central_backward' to avoid padding using replicate or constant values.
  • Add mode='bspline' to spatial_derivatives().
  • Generalize cubic_bspline_jacobian_*() to jacobian_*() functions for all mode values.
  • Fix bending energy, curvature, and divergence loss functions.

Fixes #113, #114, #115, and #116.

@aschuh-hf aschuh-hf added bug Something isn't working enhancement New feature or request labels Aug 31, 2023
@aschuh-hf aschuh-hf merged commit 9cbcb02 into main Aug 31, 2023
9 checks passed
@aschuh-hf aschuh-hf deleted the flow-derivatives-and-losses branch August 31, 2023 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix calculation of curvature regularization term
1 participant