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
FSL
fslpy
Commits
f2e35db5
Commit
f2e35db5
authored
Oct 08, 2020
by
Paul McCarthy
🚵
Browse files
BF: Missing normalisation step in decompose
parent
86c0fdb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/transform/affine.py
View file @
f2e35db5
...
...
@@ -214,6 +214,7 @@ def decompose(xform, angles=True):
# The process of finding the scaling factors and shear parameters
# is interleaved. First, find s_x = |M'_1|.
sx
=
np
.
sqrt
(
np
.
dot
(
M1
,
M1
))
M1
/=
sx
# Then, compute an initial value for the xy shear factor,
# s_xy = M'_1 * M'_2. (this is too large by the y scaling factor).
...
...
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