Visualizing Objects

In Menpo, we take an opinionated stance that visualization is a key part of generating research on deformable models. Therefore, we tried to make the mental overhead of visualizing objects as low as possible.

We also took a strong step towards simple visualization by integrating some of our objects with visualization widgets for the Jupyter notebook. Remember that our widgets live on their own repository, called menpowidgets.

Visualizing Models

Without further ado, a quick example of visualising the AAM trained in the Building section with an interactive widget:

%matplotlib inline  # This is only needed if viewing in a Jupyter notebook

Figure 1: Example of visualizing an AAM using an interactive widget.

One can visualize the only the multi-scale shape models:

%matplotlib inline

or the appearance models:

%matplotlib inline
import as mio

The same visualization widgets can be found in other models, such as ATM, CLM etc.

Visualizing Fitting Result

The fitting result objects shown in Building can be easily visualized. Specifically, the initial and final shapes can be rendered as:

%matplotlib inline

Similarly, the shapes acquired at each iteration can be visualized as:

%matplotlib inline

and the corresponding errors as:

%matplotlib inline

Finally, a fitting result can also be analysed through an interactive widget as:

%matplotlib inline

Figure 2: Example of visualizing the iterations of a fitting procedure using an interactive widget.