# Edit Mask Toolbar

You can launch the Edit Mask toolbar with the following methods:

- Select View > Edit Mask in the main menu bar.

- Right-click in an image and select Edit Mask from the context menu.

- Use the Ctrl+M keyboard shortcut.

After you have defined the mask on the image, click the Apply button. Click Apply All to use the mask on all the images in your training image set A collection of images of your specific application. A training image set represents images of a specific part or process acquired in a consistent way using the lighting, optical, and mechanical characteristics of your runtime system. The training image set includes images that represent the range of image appearances that you expect to see in normal operation.. Click the Close button to return to the process of constructing your Deep Learning application.

Tool | Keyboard Shortcut | Description
--- | --- | ---
Pan | Space + Mouse left-click and drag | Pans through an image by dragging the mouse. Press the Ctrl key to change the cursor to a hand shape or back to the original tool.
Line | Alt + L | Draws a line. Click and drag to create a line in your image. You can use this tool together with the other drawing tools. The Width value defines the size of the drawn area. Note: Hold down the Shift key while drawing, and the tool will draw a straight line between two points. If you want to fill in a rectangular area, draw the outline using the line drawing tool (hold down the Shift key to create straight lines), and then fill it in using the magic wand tool.
Circle | Alt + C | Draws a circle. Place the cursor at the center of your circular object, and drag outward. You can use this tool together with the other drawing tools. The Width value defines the size of the drawn area. Note: Hold down the Shift key to have the circle expand from the corner of a bounding box.
Magic Wand (Fill) | Alt + F | Fills an area. Click and drag to fill in areas of the image. You can also click on individual features to apply fill to just that area. You can use this tool together with the other drawing tools. The Width value defines the size of the drawn area. Note: The Eraser tool can be used to trim and/or remove extraneous drawings on the image.
Width | D + Mouse wheel | Defines the pixel width of the mask drawing tools, border mask and the grow area. Make sure to set the Width before applying the mask. If you adjust the Width value while editing your mask, either with a drawing tool, border mask or area growth, the new value will only be applied to the next mask you create. Changing the Width value does not change previously created masks, even in the same editing session.
Border Mask | B | Creates a mask around the border of the image, based on the Width value. Applying a mask to the border of the image is helpful when you have images that arbitrarily cut off an object, such as a piece of fabric or a textile, because the field of view A view of an image is a region of pixels in an image. Tool processing is limited to the pixels within the view. You can manually specify a view, or you can use the results of an upstream tool to generate a view. of the camera acquiring the image crops the object.
Grow Area | G | Expands the area of the mask by the Width value.
Invert | I | Inverts the mask. Using this option unmasks the area that was already masked, and masks the area that did not contain a mask.
Import/Export | N/A | The import and export buttons launch an Import Mask-Image and Export Mask-Image dialog for importing or exporting a mask image A two-dimensional array of pixels that has the same size as a view. The pixel values in the mask image determine whether or not the corresponding pixels in the view are used for training or run-time processing., as a .png file. A mask image is a two-dimensional array of pixels that has the same size as the view in which the mask resides. The pixel values in the mask image determine whether or not the corresponding pixels in the view are used for training Training is the process that your tool, which is a neural network, is learning about the features (pixels) based on the labels you made. For example, a tool will learn the defect/normal pixels in each image based on the defect/normal labels you drew. The goal of the tool Training is learning enough to give the correct inspection results of whether an unseen image is defective or not. The key to training is to ensure that you include all possible variations within your training set, and that your images are accurately labeled. Training times vary by the application, tool setup and the GPU in the PC being used to train the network. or runtime processing. The import/export options allow you to either import a previously created mask image, or export one that you just created.
Undo | Ctrl + Z | Undoes the last action.
Clear | X | Removes the mask from the image.
Apply | Enter | Applies the mask to the image. If you have multiple tools connected in a chain, this action also applies the mask to downstream tools.
Apply All | Shift + Enter | Applies the same mask on all the images.
Close | Esc | Ends the mask editing session. You have to close the mask editing session to perform any other actions in the application.