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
Evan Edmond
fslpy
Commits
947b7693
Commit
947b7693
authored
Feb 08, 2021
by
Paul McCarthy
🚵
Browse files
RF: Don't round voxel coords - COG coordinates are not integer
parent
e92f2cb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/data/featanalysis.py
View file @
947b7693
...
...
@@ -373,7 +373,7 @@ def loadClusterResults(featdir, settings, contrast):
if
not
op
.
exists
(
clusterFile
):
return
None
# In higher lev
l
e analysis run in some standard
# In higher leve
l
analysis run in some standard
# space, the cluster coordinates are in standard
# space. We transform them to voxel coordinates.
# later on.
...
...
@@ -480,9 +480,9 @@ def loadClusterResults(featdir, settings, contrast):
zcog
=
[
c
.
zcogx
,
c
.
zcogy
,
c
.
zcogz
]
copemax
=
[
c
.
copemaxx
,
c
.
copemaxy
,
c
.
copemaxz
]
zmax
=
affine
.
transform
([
zmax
],
coordXform
)[
0
]
.
round
()
zcog
=
affine
.
transform
([
zcog
],
coordXform
)[
0
]
.
round
()
copemax
=
affine
.
transform
([
copemax
],
coordXform
)[
0
]
.
round
()
zmax
=
affine
.
transform
([
zmax
],
coordXform
)[
0
]
zcog
=
affine
.
transform
([
zcog
],
coordXform
)[
0
]
copemax
=
affine
.
transform
([
copemax
],
coordXform
)[
0
]
c
.
zmaxx
,
c
.
zmaxy
,
c
.
zmaxz
=
zmax
c
.
zcogx
,
c
.
zcogy
,
c
.
zcogz
=
zcog
...
...
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