Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Istvan N. Huszar, MD
tirl
Commits
19df2d3d
Commit
19df2d3d
authored
Aug 16, 2020
by
inhuszar
Browse files
Bugfix: cost Jacobian with masked images.
parent
1c6a7d87
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tirl/costs/mi.py
View file @
19df2d3d
...
...
@@ -301,7 +301,7 @@ class CostMI(Cost):
# Masked point should contribute no gradient force for the registration
if
combined_mask
is
not
None
:
jac
[
combined_mask
.
ravel
(),
...]
=
0
jac
[
np
.
isclose
(
combined_mask
,
0
,
atol
=
1e-3
)
.
ravel
(),
...]
=
0
# return -jac
return
jac
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment