fsleyes.autodisplay
¶
This module provides the audoDisplay()
function, which is used
for automatically configuring overlay display settings.
The :autoDisplay` function is called when FSLeyes is started, and when new overlays are loaded.
-
fsleyes.autodisplay.
autoDisplay
(overlay, overlayList, displayCtx, **kwargs)¶ Automatically configure display settings for the given overlay.
- Parameters
overlay – The overlay object (e.g. an
Image
instance).overlayList – The
OverlayList
.displayCtx – The
DisplayContext
.kwargs – Passed through to the overlay-type specific function.
-
fsleyes.autodisplay.
_ImageDisplay
(overlay, overlayList, displayCtx, **kwargs)¶ Configure default display settings for the given
Image
overlay.
-
fsleyes.autodisplay.
_isStatImage
(overlay)¶ Returns
True
if the givenImage
overlay looks like a statistic image,False
otherwise.
-
fsleyes.autodisplay.
_isPEImage
(overlay)¶ Returns
True
if the givenImage
overlay looks like a statistic image,False
otherwise.
-
fsleyes.autodisplay.
_statImageDisplay
(overlay, overlayList, displayCtx, zthres=3.0, posCmap=None, negCmap=None)¶ Configure default display settings for the given statistic
Image
overlay.
-
fsleyes.autodisplay.
_peImageDisplay
(overlay, overlayList, displayCtx)¶ Automatically configure display settings for the given PE/COPE
Image
overlay.
-
fsleyes.autodisplay.
_FEATImageDisplay
(overlay, overlayList, displayCtx)¶ Automatically configure display settings for the given
FEATImage
overlay.
-
fsleyes.autodisplay.
_MelodicImageDisplay
(overlay, overlayList, displayCtx)¶ Automatically configure display settings for the given
MelodicImage
overlay.