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.NiftiOpts
The
LabelOpts
class defines settings for displayingImage
overlays as label images., such as anatomical atlas images, tissue segmentation images, and so on.-
outline
= <MagicMock name='mock.Boolean()' id='3031712864'>¶ If
True
only 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='3030091688'>¶ Width of labelled region outlines, if :attr:
outline` is ``True
. This value is in terms of pixels.
-
showNames
= <MagicMock name='mock.Boolean()' id='3031712864'>¶ 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
LabelOpts
instance for the specifiedoverlay
. All arguments are passed through to theNiftiOpts
constructor.
-
lut
= <MagicMock name='mock.Choice()' id='3030895104'>¶ The
LookupTable
used to colour each label.
-