The first thing that is needed before adding the compartments operation is a set of parent and children objects. Since many segmentation methods can result in unwanted objects it is also best to use any object filtering operation prior to adding the Comparmtnets operation to the pipeline. 

The compartments operation can the be added to the pipeline like any other operation.

Once added to the pipeline we can configure the operation parameters.