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
Imageinstance).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
Imageoverlay.
-
fsleyes.autodisplay._isStatImage(overlay)[source]¶ Returns
Trueif the givenImageoverlay looks like a statistic image,Falseotherwise.
-
fsleyes.autodisplay._isPEImage(overlay)[source]¶ Returns
Trueif the givenImageoverlay looks like a statistic image,Falseotherwise.
-
fsleyes.autodisplay._statImageDisplay(overlay, overlayList, displayCtx, zthres=3.0, posCmap=None, negCmap=None)[source]¶ Configure default display settings for the given statistic
Imageoverlay.
-
fsleyes.autodisplay._peImageDisplay(overlay, overlayList, displayCtx)[source]¶ Automatically configure display settings for the given PE/COPE
Imageoverlay.