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)[source]
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)[source]
Configure default display settings for the given
Image
overlay.
- fsleyes.autodisplay._isStatImage(overlay)[source]
Returns
True
if the givenImage
overlay looks like a statistic image,False
otherwise.
- fsleyes.autodisplay._isPEImage(overlay)[source]
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)[source]
Configure default display settings for the given statistic
Image
overlay.
- fsleyes.autodisplay._peImageDisplay(overlay, overlayList, displayCtx)[source]
Automatically configure display settings for the given PE/COPE
Image
overlay.