fsleyes.displaycontext.maskopts¶
This module provides the MaskOpts class, which defines settings
for displaying an Image overlay as a binary mask.
- class fsleyes.displaycontext.maskopts.MaskOpts(overlay, *args, **kwargs)[source]¶
Bases:
fsleyes.displaycontext.niftiopts.NiftiOptsThe
MaskOptsclass defines settings for displaying anImageoverlay as a binary mask.- threshold = <MagicMock name='mock.Bounds()' id='3032863072'>¶
The mask threshold range - values outside of this range are not displayed.
- invert = <MagicMock name='mock.Boolean()' id='3032919488'>¶
If
True, thethresholdrange is inverted - values inside the range are not shown, and values outside of the range are shown.
- colour = <MagicMock name='mock.Colour()' id='3032335120'>¶
The mask colour.
- outline = <MagicMock name='mock.Boolean()' id='3032919488'>¶
If
Trueonly the outline of the mask will be shown. IfFalse, the filled mask will be displayed.
- outlineWidth = <MagicMock name='mock.Int()' id='3032744456'>¶
Width of mask outline, if :attr:
outline` is ``True. This value is in terms of pixels.
- interpolation = <MagicMock name='mock.Choice()' id='3031918000'>¶
- __init__(overlay, *args, **kwargs)[source]¶
Create a
MaskOptsinstance for the given overlay. All arguments are passed through to theNiftiOptsconstructor.
- __annotations__ = {}¶
- __module__ = 'fsleyes.displaycontext.maskopts'¶
- __colourChanged(*a)¶
Called when
colourchanges. UpdatesDisplay.alphafrom the alpha component.
- __alphaChanged(*a)¶
Called when
Display.alphachanges. Updates the alpha component ofcolour.