Object recognition is a cornerstone task towards the scene
understanding problem. Recent works in the field boost their perfor-
mance by incorporating contextual information to the traditional use
of the objects’ geometry and/or appearance. These contextual cues are
usually modeled through Conditional Random Fields (CRFs), a partic-
ular type of undirected Probabilistic Graphical Model (PGM), and are
exploited by means of probabilistic inference methods. In this work we
present the Undirected Probabilistic Graphical Models in C++ library
(UPGMpp), an open source solution for representing, training, and per-
forming inference over undirected PGMs in general, and CRFs in par-
ticular. The UPGMpp library supposes a reliable and comprehensive
workbench for recognition systems exploiting contextual information, in-
cluding a variety of inference methods based on local search, graph cuts,
and message passing approaches. This paper illustrates the virtues of the
library, i.e. it is efficient, comprehensive, versatile, and easy to use, by
presenting a use-case applied to the object recognition problem in home
scenes from the challenging NYU2 dataset.