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='139881575830896'>
The mask threshold range - values outside of this range are not displayed.
- invert = <MagicMock name='mock.Boolean()' id='139881574968736'>
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='139881574128016'>
The mask colour.
- outline = <MagicMock name='mock.Boolean()' id='139881574968736'>
If
Trueonly the outline of the mask will be shown. IfFalse, the filled mask will be displayed.
- outlineWidth = <MagicMock name='mock.Int()' id='139881574289696'>
Width of mask outline, if :attr:
outline` is ``True. This value is in terms of pixels.
- interpolation = <MagicMock name='mock.Choice()' id='139881573326304'>
- __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.