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. If the image looks like it is from a FEAT analysis, some display settings are changed.

fsleyes.autodisplay._getStatImageColourMaps(overlay, posCmap=None, negCmap=None)[source]
fsleyes.autodisplay._statImageDisplay(basename, overlay, displayCtx, zthres=3.1, posCmap=None, negCmap=None)[source]

Configure default display settings for the given FEAT statistic image (e.g. zstat1.nii.gz).

fsleyes.autodisplay._renderedStatImageDisplay(basename, overlay, displayCtx, **kwargs)[source]

Automatically configure display settings for the given FEAT pre-renderered stats image (e.g rendered_thresh_zstat1.nii.gz).

fsleyes.autodisplay._peImageDisplay(basename, overlay, displayCtx, **kwargs)[source]

Automatically configure display settings for the given FEAT PE/COPE image (e.g pe1.nii.gz).

fsleyes.autodisplay._threshStatImageDisplay(basename, overlay, displayCtx, zthres=3.1, posCmap=None, negCmap=None, **kwargs)[source]

Automatically configure display settings for the given FEAT thresholded statistic image (e.g. thresh_zstat1.nii.gz)

fsleyes.autodisplay._clusterMaskImageDisplay(basename, overlay, displayCtx, **kwargs)[source]

Automatically configure display settings for the given FEAT cluster mask image (e.g. cluster_mask_zstat1.nii.gz)

fsleyes.autodisplay._MelodicImageDisplay(overlay, overlayList, displayCtx)[source]

Automatically configure display settings for the given MelodicImage overlay.