Scan compression can be applied in an automated way to new scans. This only requires the user to train a classifier able to highlight areas of interest and flag the relevant class as foreground.

Enabling automatic foreground mask for scan compression

In our example, we created background and object classes on the saved scan, trained a model using Model search. The following screenshot shows the Object view with the object of interest segmented. 


When a classifier and object segmenter are available in perClass Mira project, acquiring a new scan in scan mode will automatically highlight the foreground in yellow

Applying foreground mask automatically

We have shifted plastic tiles on the table and acquire a new scan. In the screenshot below, we can see that the foeground area is now automatically highlighted in yellow. We also can use the toolbar slider to dilate the foreground mask out from the objects. In this way, we will also save some of the bacground. This is useful so that we will be able to train good models along object boundaries.



Adjusting the automatic mask

The user can anytime paint in the mask. In this way, interesting areas to be preserved even if not highlighted by the the classification model.


Other mask controls are available in the toolbar:

  • Show mask toggles mask visualization on and off
  • Draw mask is enabled at any moment that the user paints the mask manually. Disabling it removes only the manually painted parts, preserving the automatic model decisions
  • Object mask re-applies the model to the scan, re-creating the mask
  • Clear mask removes the mask