Documentation Index

Fetch the complete documentation index at: https://knowledge.emesent.com/llms.txt

Use this file to discover all available pages before exploring further.

Create Custom Masks in Aura

Prev Next

This article explains how to create a custom image mask for 360 image extraction or colorization in Aura. The result is a PNG mask file that can be loaded into the Mask template list and applied to extracted frames.

When processing a dataset with 360 video for image extraction or colorization, a mask is applied to the extracted frames to hide areas that should not be shown. Aura includes several predefined masks for common camera mount configurations. If none are suitable for the dataset, create a custom mask using any image editing software.

What you will need

  • A processed scan with 360 video data, open in Aura.

  • Image editing software. This article uses GIMP (free); the techniques apply to any image editor.

  • Access to the Aura predefined mask folder at Program Files > Aura > Aura > Plugins > EmtProcessWorkflows > Content > ProcessWorkflows > ImageMasks.

Procedure

Step 1: Extract frames without masking

For large videos, sub-sample first by setting a high Frame interval (for example, 250) to reduce processing time.

  1. Run an Extract 360 images workflow with Image masking turned off.

  2. Once frame extraction is complete, navigate to the extracted frames folder.

Extract 360 images workflow with image masking turned off

Step 2: Open a frame in GIMP

  1. Select a frame to create a mask for and open it in GIMP.

  2. Adjust the display so the image fits the screen.

A frame opened in GIMP

The frame fitted to the screen in GIMP

Step 3: Load a predefined mask as a starting layer

Start with an existing mask instead of creating one from scratch.

  1. Open the folder containing the predefined masks: Program Files > Aura > Aura > Plugins > EmtProcessWorkflows > Content > ProcessWorkflows > ImageMasks.

  2. Select a suitable mask from either the Colourise or FrameExtract folder.

  3. Drag the mask onto the current image in GIMP. It appears as a new layer.

The predefined mask added as a new layer

Step 4: Select the masked area

  1. Use the Fuzzy Select Tool (also known as the Magic Wand) and click the black area of the mask layer to select it.

  2. In the Layer panel on the right, click the Eye icon before the mask layer to hide the mask. Each layer appears as a thumbnail, and the upper layer in the list is the first one visible.

  3. The selected mask area is now visible on top of the image.

Selecting the black area of the mask with the Fuzzy Select Tool

Hiding the mask layer using the Eye icon in the Layer panel

The selected mask area shown on top of the image

Step 5: Refine the mask selection

  1. Use the Free Select Tool to add or refine areas as needed.

  2. Ensure the Mode is set to Add to the current selection. Click the second mode icon or hold the Shift key while selecting.

  3. Press Enter to add each area to the current selection.

  4. Keep the frames folder handy and add more frames if necessary. Review each added frame, adjusting the mask to ensure proper coverage, especially around challenging areas such as hands or cables.

Adding areas to the selection with the Free Select Tool

Step 6: Convert the selection to a mask image

  1. Ensure the active background colour is set to black.

  2. In the Layer panel, select the base layer containing the extracted image.

  3. Press Delete.

  4. Go to Select > Invert, then press Delete again. The entire image is now black.

  5. Click the Bucket Fill Tool and ensure the active foreground colour is white.

  6. Click the top area to fill it with the active foreground colour (white).

The active background colour set to black

Selecting the base layer in the Layer panel

The selected area cleared after pressing Delete

The image after inverting the selection and deleting again

The Bucket Fill Tool with the foreground colour set to white

The masked area filled with white

Step 7: Export the mask as a PNG

If using Aura 1.5 or earlier, change the pixel format to 8bpc RGB before exporting.

  1. Go to File > Export As.

  2. Save the mask in PNG format to avoid the lossy compression issues associated with JPG files.

  3. Click Export.

  4. Close GIMP and return to Aura.

Exporting the mask in PNG format

Step 8: Add the custom mask to Aura

  1. Run a Colorize or Extract 360 images workflow.

  2. Click Processing Settings.

  3. In the Colorize or Extract 360 images tab, enable Image masking.

  4. In Mask template, click the + icon.

  5. Enter a name for the new mask, click Create, then browse for the newly created mask file.

  6. Click Save to finish adding the custom mask to Aura.

Image masking enabled in the workflow settings

Creating a new mask template and browsing for the mask file

The custom mask added to the Mask template list

Outcome

The custom mask is saved as a PNG file and loaded into Aura's Mask template list. It can now be selected when running Colorize or Extract 360 images workflows.

Additional information