fsleyes.displaycontext.labelopts¶
This module provides the LabelOpts class, which defines settings
for displaying Image overlays as label images., such as anatomical
atlas images, tissue segmentation images, and so on.
-
class
fsleyes.displaycontext.labelopts.LabelOpts(overlay, *args, **kwargs)[source]¶ Bases:
fsleyes.displaycontext.niftiopts.NiftiOptsThe
LabelOptsclass defines settings for displayingImageoverlays as label images., such as anatomical atlas images, tissue segmentation images, and so on.-
outline= <MagicMock name='mock.Boolean()' id='4117273880'>¶ If
Trueonly the outline of contiguous regions with the same label value will be shown. IfFalse, contiguous regions will be filled.
-
__module__= 'fsleyes.displaycontext.labelopts'¶
-
outlineWidth= <MagicMock name='mock.Int()' id='4116300320'>¶ Width of labelled region outlines, if :attr:
outline` is ``True. This value is in terms of pixels.
-
showNames= <MagicMock name='mock.Boolean()' id='4117273880'>¶ If
True, region names (as defined by the currentLookupTable) will be shown alongside each labelled region.Note
Not implemented yet.
-
__init__(overlay, *args, **kwargs)[source]¶ Create a
LabelOptsinstance for the specifiedoverlay. All arguments are passed through to theNiftiOptsconstructor.
-
lut= <MagicMock name='mock.Choice()' id='4117029600'>¶ The
LookupTableused to colour each label.
-