1. Knowledge Base
  2. Aura
  3. Working with Point Clouds

Working with Point Clouds - Creating a Custom Mask

When processing a dataset with 360 video for image extraction or colorization, one of the essential steps is applying a mask to the extracted frames. This is because there may be areas in the frame that you do not want to show. Emesent Aura comes with several pre-defined masks that you can use for this purpose but you can also create your custom mask in case none are suitable for your dataset.

To create a custom mask

The following process is demonstrated using GIMP (a freely downloadable editing software). However, you can utilize any third-party image editing software, as the techniques discussed here are applicable across various platforms.

  1. Run an Extract 360 images workflow with Image masking turned off.Set High Frame IntervalNote: If you have a large video, it is recommended to do a subsample first by setting a high Frame interval (e.g., 250).
  2. Once the frame extraction process is completed, navigate to the extracted frames folder.
  3. Select a frame you want to create a mask for and open it in GIMP.Load Frame to GIMP
  4. Adjust the display to ensure the image fits your screen properly.Load Frame to GIMP2

  5. Start with an existing mask instead of creating one from scratch. Open the folder containing the predefined masks by navigating to Program Files > Aura > Aura> Plugins > EmtProcessWorkflows > Content > ProcessWorkflows > ImageMasks.

  6. Select a suitable mask from either the Colourise or FrameExtract folder then drag this mask onto your current image in GIMP. It will appear as a new layer.Drag Mask to GIMP

  7. Use the Fuzzy Select Tool (aka Magic Wand) and click on the black area of the mask layer to select it.Fuzzy Tool Select Black

  8. In the Layer panel on the right, every layer in the image appears as a thumbnail. The upper layer in the list is the first one visible. Click the Eye icon before the mask layer to hide the mask.Hide Layer
    Notice that the selected mask area is visible on top of the image.Hide Layer 2

  9. Use the Free Select Tool to add or refine areas to the mask as needed. Press the Enter key to add the area to the current selection.
    Note: Make sure the Mode is set to Add to the current selection. You can do this by clicking on the second mode icon or pressing the Shift key while selecting. 
    Free Select Tool Refine

  10. 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 like hands or cables.

  11. Ensure that the active background color is set to black.GIMP Active Background Color (1)

  12. Once satisfied with the mask, go to the Layer panel and select the base layer containing the extracted image.Select Image Layer

  13. Press Delete on your keyboard.Base Mask Deleted

  14. Go to Select > Invert then press Delete again. The entire image is now black.Top Mask Deleted

  15. Click the Bucket Fill Tool. Ensure the active foreground color is white.Set Foreground Color

  16. Click the top area to fill it with the active foreground color (white).Fill Top Mask

  17. Go to File > Export As. Save the mask in PNG format to avoid the lossy compression issues associated with JPG files.

  18. Click Export.
    Note: If using Emesent Aura 1.5 or earlier, change the pixel format to 8bpc RGB.

  19. Close GIMP and return to the Emesent Aura.

To add the custom mask in Aura

  1. Run a Colorize or Extract 360 images workflow again.

  2. Click Processing Settings.

  3. In the Colorize or Extract 360 images tab, enable Image masking.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.Selection Load Custom Masl

  6. Click Save to finish adding the custom mask to Emesent Aura.Custom Mask Loaded