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:
- manual drawing
- landmark masks
- segmentation model mask
- 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:
- load which contains the previous saved mask
- segmentation model and its options are shown in the segmentation panel
- 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 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
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.
for more on working with XSeg check this wiki article