Segmentation Editor - MachineEditor/MachineVideoEditor GitHub Wiki

Segmentation editor is used for drawing and editing segmentation face masks.
There are 4 ways for segmenting an image:

  1. manual drawing
  2. landmark masks
  3. segmentation model mask
  4. filtering a color range.

Links

Keybindings

  • Increase/decrease brush size - CTRL + mouse wheel
  • Increase/decrease opacity - Shift + mouse wheel
  • Undo - Z
  • Redo - Y
  • Brush - Q
  • Eraser - W
  • Add Polygon tool - A
  • Erase Polygon tool - S
  • Reset mask - R
  • Copy mask - C
  • Paste mask - V
  • Paste mask from previous frame - X
  • Zoom image - mouse wheel over image
  • Move image - hold middle mouse button over image

Segmentation filters

Segmentation filters is a list of filters that can remove or add part of the segmentation mask.
There are 3 default filters:

  1. load which contains the previous saved mask
  2. segmentation model and its options are shown in the segmentation panel
  3. poly-draw filter mask

Filters are calculated going from top to bottom, filter ordering can be changed via drag-and-drop, like in this picture
Filter drag and drop

Filter buttons

Filter buttons going from left to right

  • Show individual layer filter mask
  • Toggle disable/enable filter mask
  • Open edit form, disabled for filter without options or with options already displayed in the segmentation window
  • Remove filter

Filter types

  • Color filter - filter a HSL color range (early implementation)
  • Landmark filter - mask generated from a set of landmark points
  • Segmentation filter - mask generated with a segmentation model

Filter Operations

Filter Operations
Add - sets the mask on the main mask where the filter has a mask
Block - removes any mask on the main mask where the filter masks overlays it

Importing generated masks for editing

Toggle show generated masks to view XSeg generated masks. If there is a mask available the “load generated mask” button will get enabled. Clicking it will import the mask a editable mask.
Mask Importing

for more on working with XSeg check this wiki article