fsleyes.displaycontext.freesurferopts¶
This module provides the FreesurferOpts class, which contains
settings for displaying a FreesurferMesh overlay.
-
class
fsleyes.displaycontext.freesurferopts.FreesurferOpts(overlay, *args, **kwargs)¶ Bases:
fsleyes.displaycontext.meshopts.MeshOptsThe
FreesurferOptsclass, which contains settings for displaying aFreesurferMeshoverlay.Freesurfer surface vertices are defined in a coordinate system which differs from the world coordinate system of the source image. This class customises some behaviour of the
MeshOptsclass so that this difference is taken into account.-
__init__(overlay, *args, **kwargs)¶ Create a
FreesurferOptsinstance.All arguments are passed to the
MeshOptsconstructor.
-
getTransform(from_, to)¶ Overrides
MeshOpts.getTransform(). If theMeshOpts.coordSpaceproperty is'torig', and one offrom_ortois'mesh', the transform is adjusted to account for the difference between Freesurfer’s RAS and RAStkr spaces.
-
transformCoords(coords, from_, to, **kwargs)¶ Overrides
MeshOpts.transformCoords(). If theMeshOpts.coordSpaceproperty is'torig', and one offrom_ortois'mesh', the coordinate transform is adjusted to take into account the difference between Freesurfer’s RAS and RAStkr spaces.
-
__module__= 'fsleyes.displaycontext.freesurferopts'¶
-