Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
a8ed58f3
Commit
a8ed58f3
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
AtlasPanel works with non-MNI152 overlays, but shows a warning if NIFTI
header does not say that it's in MNI152 space.
parent
6094d226
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fsl/data/strings.py
+3
-4
3 additions, 4 deletions
fsl/data/strings.py
fsl/fsleyes/controls/atlasinfopanel.py
+10
-8
10 additions, 8 deletions
fsl/fsleyes/controls/atlasinfopanel.py
with
13 additions
and
12 deletions
fsl/data/strings.py
+
3
−
4
View file @
a8ed58f3
...
@@ -76,10 +76,9 @@ messages = TypeDict({
...
@@ -76,10 +76,9 @@ messages = TypeDict({
'
AtlasOverlayPanel.loadRegions
'
:
'
Loading region descriptions for {} ...
'
,
'
AtlasOverlayPanel.loadRegions
'
:
'
Loading region descriptions for {} ...
'
,
'
AtlasInfoPanel.notMNISpace
'
:
'
Atlas lookup can only be performed on
'
'
AtlasInfoPanel.notMNISpace
'
:
'
The selected overlay does not appear to
'
'
images oriented to MNI152 space
'
,
'
be in MNI152 space - atlas
'
'
information might not be accurate!
'
,
'
AtlasInfoPanel.noReference
'
:
'
No reference image available
'
,
'
AtlasInfoPanel.chooseAnAtlas
'
:
'
Choose an atlas!
'
,
'
AtlasInfoPanel.chooseAnAtlas
'
:
'
Choose an atlas!
'
,
'
AtlasInfoPanel.atlasDisabled
'
:
'
Atlases are not available
'
,
'
AtlasInfoPanel.atlasDisabled
'
:
'
Atlases are not available
'
,
...
...
This diff is collapsed.
Click to expand it.
fsl/fsleyes/controls/atlasinfopanel.py
+
10
−
8
View file @
a8ed58f3
...
@@ -154,18 +154,17 @@ class AtlasInfoPanel(fslpanel.FSLEyesPanel):
...
@@ -154,18 +154,17 @@ class AtlasInfoPanel(fslpanel.FSLEyesPanel):
text
=
self
.
__infoPanel
text
=
self
.
__infoPanel
overlay
=
self
.
_displayCtx
.
getReferenceImage
(
overlay
=
self
.
_displayCtx
.
getReferenceImage
(
self
.
_displayCtx
.
getSelectedOverlay
())
self
.
_displayCtx
.
getSelectedOverlay
())
topText
=
None
if
len
(
atlases
.
listAtlases
())
==
0
:
if
len
(
atlases
.
listAtlases
())
==
0
:
text
.
SetPage
(
strings
.
messages
[
'
AtlasInfoPanel.atlasDisabled
'
])
text
.
SetPage
(
strings
.
messages
[
'
AtlasInfoPanel.atlasDisabled
'
])
return
return
if
overlay
is
None
:
if
overlay
is
None
or
\
text
.
SetPage
(
strings
.
messages
[
'
AtlasInfoPanel.noReference
'
])
overlay
.
getXFormCode
()
!=
constants
.
NIFTI_XFORM_MNI_152
:
return
topText
=
strings
.
messages
[
'
AtlasInfoPanel.notMNISpace
'
]
topText
=
'
<font color=
"
red
"
>{}</font>
'
.
format
(
topText
)
if
overlay
.
getXFormCode
()
!=
constants
.
NIFTI_XFORM_MNI_152
:
text
.
SetPage
(
strings
.
messages
[
'
AtlasInfoPanel.notMNISpace
'
])
return
if
len
(
self
.
__enabledAtlases
)
==
0
:
if
len
(
self
.
__enabledAtlases
)
==
0
:
text
.
SetPage
(
strings
.
messages
[
'
AtlasInfoPanel.chooseAnAtlas
'
])
text
.
SetPage
(
strings
.
messages
[
'
AtlasInfoPanel.chooseAnAtlas
'
])
...
@@ -175,7 +174,10 @@ class AtlasInfoPanel(fslpanel.FSLEyesPanel):
...
@@ -175,7 +174,10 @@ class AtlasInfoPanel(fslpanel.FSLEyesPanel):
loc
=
self
.
_displayCtx
.
location
loc
=
self
.
_displayCtx
.
location
loc
=
opts
.
transformCoords
([
loc
],
'
display
'
,
'
world
'
)[
0
]
loc
=
opts
.
transformCoords
([
loc
],
'
display
'
,
'
world
'
)[
0
]
lines
=
[]
lines
=
[]
if
topText
is
not
None
:
lines
.
append
(
topText
)
# Three types of hyperlink:
# Three types of hyperlink:
# - one for complete (summary) label atlases,
# - one for complete (summary) label atlases,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment