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='281473494326624'>¶ The mask threshold range - values outside of this range are not displayed.
-
invert= <MagicMock name='mock.Boolean()' id='281473497326640'>¶ 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='281473498033216'>¶ The mask colour.
-
outline= <MagicMock name='mock.Boolean()' id='281473497326640'>¶ If
Trueonly the outline of the mask will be shown. IfFalse, the filled mask will be displayed.
-
outlineWidth= <MagicMock name='mock.Int()' id='281473494293760'>¶ Width of mask outline, if :attr:
outline` is ``True. This value is in terms of pixels.
-
interpolation= <MagicMock name='mock.Choice()' id='281473493025840'>¶
-
__init__(overlay, *args, **kwargs)[source]¶ Create a
MaskOptsinstance for the given overlay. All arguments are passed through to theNiftiOptsconstructor.
-
_MaskOpts__alphaChanged(*a)¶ Called when
Display.alphachanges. Updates the alpha component ofcolour.
-
_MaskOpts__colourChanged(*a)¶ Called when
colourchanges. UpdatesDisplay.alphafrom the alpha component.
-
__module__= 'fsleyes.displaycontext.maskopts'¶
-