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 displaying Image overlays as label images., such as anatomical atlas images, tissue segmentation images, and so on.

outline = <MagicMock name='mock.Boolean()' id='140735756653168'>

If True only the outline of contiguous regions with the same label value will be shown. If False, contiguous regions will be filled.

__annotations__ = {}
__module__ = 'fsleyes.displaycontext.labelopts'
outlineWidth = <MagicMock name='mock.Int()' id='140735756742672'>

Width of labelled region outlines, if :attr:outline` is ``True. This value is in terms of pixels.

showNames = <MagicMock name='mock.Boolean()' id='140735756653168'>

If True, region names (as defined by the current LookupTable) will be shown alongside each labelled region.

Note

Not implemented yet.

__init__(overlay, *args, **kwargs)[source]

Create a LabelOpts instance for the specified overlay. All arguments are passed through to the NiftiOpts constructor.

lut = <MagicMock name='mock.Choice()' id='140735756677712'>

The LookupTable used to colour each label.