spacr.qt.screens.make_masks
===========================

.. py:module:: spacr.qt.screens.make_masks

.. autoapi-nested-parse::

   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
---------------

.. py:data:: MODE_NONE
   :value: 'none'


.. py:data:: MODE_BRUSH
   :value: 'brush'


.. py:data:: MODE_ERASE
   :value: 'erase'


.. py:data:: MODE_ERASE_OBJECT
   :value: 'erase_object'


.. py:data:: MODE_WAND_ADD
   :value: 'wand_add'


.. py:data:: MODE_WAND_ERASE
   :value: 'wand_erase'


.. py:data:: MODE_ZOOM
   :value: 'zoom'


.. py:class:: MakeMasksScreen(parent: Optional[PySide6.QtWidgets.QWidget] = None)

   Bases: :py:obj:`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.


