Welcome to the 3DF Zephyr tutorial series.
This tutorial explains how to automatically create masks in Zephyr and use the 3DF Masquerade tools for image masking.
The tool is available in all versions of 3DF Zephyr.
3DF Masquerade is a standalone external tool included with all versions of 3DF Zephyr. It is designed primarily for masking images in photogrammetry turntable scenarios.
The masking actions performed by the user in Masquerade can instruct Zephyr to completely ignore certain areas of the images during the New project creation workflow. This means:
This is particularly useful in cases of significant background noise or when the subject moves inconsistently with the background. A common scenario occurs when a subject is captured on a turntable: as the object rotates while the background remains stationary, Zephyr may attempt to align the camera with the background instead of the subject if the background contains enough features. The recommended solution is to mask the background using 3DF Masquerade before processing the images.
The provided dataset below can be used to follow this tutorial.
![]() | Dataset Download – Dismal Souvenir (284MB) |
3DF Masquerade can be launched as an external executable and used independently from 3DF Zephyr. Here are the methods:
– Via the bar menu: navigate to Utilities > Launch Masquerade.
– Via the toolbar: click on the Masquerade icon.
In the first page of the New Project Wizard, the “Setup masks” (1) checkbox must be selected. Clicking the “Next” button make to advance in the photo selection phase, where images and masks can be loaded automatically. Clicking “Next” again proceeds to the Masking phase, where selecting the checkbox Manual (2) let the “Launch Masquerade” (3) button becomes available.
Images can be loaded inside Masquerade from the menu: File > Load image.
Alternatively, it’s possible just to drag and drop the first image in the workspace to load all the images in a folder.
The 3DF Masquerade interface is divided into these sections:
Masking workspace (1) – allow to visualize each picture and work with the masks tools.
Command history (2) – can be used to undo/redo actions taken in 3DF Masquerade
Folder Navigator (3) – This panel, facilitates quick navigation through images, that will be associated with created masks and marked with a “(M)” symbol. Right-clicking within the panel provides access to the following commands:
Note: Using the Select All and then use the “Delete Mask for This Image” commands will permanently delete all masks in the current project.
Upper toolbar (4) – provides quick access to core comand for saving and managing the masks.
Tools toolbar (5) – it contains several tools for masks/unmask images
Automatic masking in Zephyr uses a machine learning model to quickly generate masks from images, reducing the need for manual editing, it can be applied both during the New Project Wizard setup and within the Masquerade interface using the Automagic tool.
The Automatic masking can be used through the standard model creation from: the Workflow > New Project Wizard.
On the first page, ensure that the “Setup Masks” (1) checkbox is selected. Clicking the “Next” button advances to the Photo Selection page, where images can be loaded automatically.
Clicking “Next” button again let to proceed to the Masking page, where the “Automatic” (2) checkbox is selected by default.
To use Automatic masking, an AI model must be selected or downloaded from the Model drop-down menu. The General model is optimized for generic use and is particularly effective for close-range datasets.
Proceed with the “Next” button to finalize the New project creation setup. In the last page, click the “Run” button, the Automatic masking will be computed for the cameras.
The Masquerade Automagic tool is designed to automatically create masks by leveraging pre-trained machine learning models.
To use the tool, click the “Select Automagic Model” (1) button to open the Select Automagic Model (2) window. From here, a machine learning model can be selected. If no models have been downloaded, or to download a new one, the “Download” (3) button can be press to open the Download dialog. The desired model can be chosen from the Model (4) drop-down menu: General is optimized for general use, particularly effective for close-range datasets.
After selecting the model, click the “Download” (5) button to confirm.
Once the download is complete, the model will be available for use with the Automagic tool to generate masks.
The following commands are available in the lower toolbar:
Choosing “YES” will allow Masquerade to generate masks for all images, which will appear in the Folder Navigator marked with “(M)” symbol. Every image of will have a mask in .bim format saved in the directory.
In some cases, if the subject is rotated, the Automagic tool may leave some unmasked spot, as shown in the example below.
The “Convert mask to stroke” (8) command allows you to transform the mask into editable strokes. This enables the use of the Brush tools to adjust the strokes and refine the mask. Once the edits are complete, click the “Compute mask” (9) button to confirm the mask modifications.
As shown in the image below, the mask has been fixed thanks to the mark created by the brush.
Selection Tools allow you to mask specific areas of the subject with precision. When a selection is made, it is highlighted with a blue overlay. As the mask is applied, the overlay turns red.
All three tools follow the same fundamental workflow: drag the cursor over the desired area, then click the “Mask Selection” button [
Below is an example demonstrating the application of selection tools:
The Brush tools (also known as the Silhouetter tools) are used to manually create masks or refine those generated by the Automagic tool.
3DF Masquerade uses its algorithm to propagate the mask automatically, leveraging the strokes provided by the user. High contrast between the background and the subject improves the tool’s effectiveness in generating accurate masks.
The tool requires at least the following strokes to function:
To start using the tool, click on the “Foreground stroke” (1) button to activate the red stroke, then left-mouse to mark areas of the image. To mark the background, either click the “Background stroke” (2) button or hold the “shift” key drawing with the “left-mouse” for applying the blue stroke.
The brush size can be adjusted using the Brush size slider (3).
Clicking on the “Compute mask” button [
The “Automated Masking after each stroke” command [
All created mask files (.bim) in the image directory are detected automatically. However, when returning to the New project creation section in 3DF Zephyr, the masks might not load automatically. In that case, simply click the “Refresh” button, with this option will be possible to locate the masks folder and update the path.