Skip to content

Conversation

@kate-sann5100
Copy link
Collaborator

@kate-sann5100 kate-sann5100 commented Jan 5, 2021

Fixes #1408 .

Description

Add bending energy loss useful for registration.

Status

Ready/Work in progress/Hold

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh --codeformat --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Signed-off-by: kate-sann5100 <yiwen.li@st-annes.ox.ac.uk>
Signed-off-by: kate-sann5100 <yiwen.li@st-annes.ox.ac.uk>
@kate-sann5100 kate-sann5100 changed the title 1405 add bending energy loss [WIP] [WIP]1405 add bending energy loss Jan 5, 2021
Signed-off-by: kate-sann5100 <yiwen.li@st-annes.ox.ac.uk>
Signed-off-by: kate-sann5100 <yiwen.li@st-annes.ox.ac.uk>
@kate-sann5100 kate-sann5100 changed the title [WIP]1405 add bending energy loss 1405 add bending energy loss Jan 6, 2021
Copy link
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

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

thanks, the style/format of this PR looks great, it's a really nice starting point. I put some comments about the actual logic. ideally we should have something general for different spatial dimensions, not just for spatial 3D

Signed-off-by: kate-sann5100 <yiwen.li@st-annes.ox.ac.uk>
Signed-off-by: kate-sann5100 <yiwen.li@st-annes.ox.ac.uk>
Signed-off-by: kate-sann5100 <yiwen.li@st-annes.ox.ac.uk>
Copy link
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

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

thanks, I forgot to mention that perhaps rename gradient to spatial_gradient to avoid confusion?

also, do you want to put some acknowledgement in the docstring such asadapted from DeepRegNet? cc @YipengHu

@YipengHu
Copy link

YipengHu commented Jan 6, 2021

thanks, I forgot to mention that perhaps rename gradient to spatial_gradient to avoid confusion?

also, do you want to put some acknowledgement in the docstring such asadapted from DeepRegNet? cc @YipengHu

Sounds good to have a reference to DeepReg, using either the paper or github URL.
"spatial_gradient" is more specific and better.

kate-sann5100 and others added 7 commits January 6, 2021 16:18
Signed-off-by: kate-sann5100 <yiwen.li@st-annes.ox.ac.uk>
Signed-off-by: kate-sann5100 <yiwen.li@st-annes.ox.ac.uk>
Signed-off-by: kate-sann5100 <yiwen.li@st-annes.ox.ac.uk>
Signed-off-by: kate-sann5100 <yiwen.li@st-annes.ox.ac.uk>
@wyli wyli merged commit 5aa5e16 into Project-MONAI:master Jan 6, 2021
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.

3 participants