spacr.qt.screens.make_masks

MakeMasksScreen — Qt widget replacing the Tk ModifyMaskApp.

Load a folder of images and their masks (in <folder>/masks/), draw brush/erase strokes on the mask, run object-level operations (fill, relabel, invert, remove small), zoom into a region for detailed edits, use a magic-wand flood-fill by intensity, undo/redo, and save the edited mask back to <folder>/masks/<name>.tif as a labeled uint16 mask.

Advanced features still deferred (noted in the toolbar): dividing line and free-form polygon draw.

Module Contents

spacr.qt.screens.make_masks.MODE_NONE = 'none'[source]
spacr.qt.screens.make_masks.MODE_BRUSH = 'brush'[source]
spacr.qt.screens.make_masks.MODE_ERASE = 'erase'[source]
spacr.qt.screens.make_masks.MODE_ERASE_OBJECT = 'erase_object'[source]
spacr.qt.screens.make_masks.MODE_WAND_ADD = 'wand_add'[source]
spacr.qt.screens.make_masks.MODE_WAND_ERASE = 'wand_erase'[source]
spacr.qt.screens.make_masks.MODE_ZOOM = 'zoom'[source]
class spacr.qt.screens.make_masks.MakeMasksScreen(parent: PySide6.QtWidgets.QWidget | None = None)[source]

Bases: PySide6.QtWidgets.QWidget

Qt widget for the Make Masks app — the successor to Tk ModifyMaskApp.

Owns the canvas, the tools panel, and the file-navigation state; see the module docstring for the full feature list.