As always, the first step in the pipeline is the selection of the Input ROI. To speed up the pipeline it is generally advised to limit the analysis only to a specified region of interest. In this case this may involve restricting it only to the bounds of specific regions or the whole atlas. In our example, the atlas regions have already been imported as objects and so we can use the bounds of these objects in XY together with their extent in Z to set the input ROI. The bounds and plane range will depend on which objects are selected, whether just the one, a few, or all of them.

If any voxel operations are required to facilitate the segmentation these can be added to the pipeline prior to any segmentation step.

To use the atlas objects for compartmentalization they must be imported into the pipeline, Here we've used the Import Document Objects operation. Because there are no other objects in the dataset at present the Tag field can be left empty, otherwise,  tags can be used to specify exactly which objects need to be used. We've also renamed the operation to "Atlas" so that all the objects get this tag to facilitate reading further pipeline operations.

From there on we can segment and filter any of the objects that we want to compartmentalise. In our example we've used a blob finder segmentation and further filtered those objects to more specifically identify cells, but any segmentation tool can be used with whatever filter is required.

Having segmented all the objects to be compartmentalised, the final step is to group objects to their specific atlas regions. This is done using the Compartments operation.

Object tags are added to the pipeline using the green "+" sign and arranged in order of hierarchy using the arrows. In the example above the objects with the tag "Cell Flt" have been configured to be children of Objects with the tag "Atlas". The threshold of inclusion has be set up so that if at least 50% of any object with the tag "Cell Flt" is within the boundary of an object with the tag "Atlas" it will become a child of that object.

Finally, as with any pipeline, we must save the objects.