Suppose a colon section in which you've detected nuclei, and separately detected glands or trained a ClassifierLoading... to mark tumor and stroma. Each gives you a picture of regions. What you want is a number on each nucleus saying which region it belongs to. Assign classes to objects supplies that number.
You set one parameter, Class map: a grayscale image in which every pixel holds the id of its class. The engine is a measurements engine, so the events it labels are the ones detected in the current layerLoading...'s Detection section. Each event receives the class id of the place where it is located. You'll find it under the layer's Measurements, Add Measurements (Advanced), Assign classes to objects.
The reference names two sources for the class map. The Classifier's Measurements Gray Map gives the first class the value 1, the second the value 2, and so on. Proximity AreasLoading... can output its distance bands as a Gray image, the form meant for measurements. In the reference example, a brightfield colon image with detected nuclei and glands, View Event Data shows each nucleus carrying the id of the gland it lies in.
The output is a number per event, not a named label or an overlay color. A histogramLoading... of that number counts objects per class or area, and a gateLoading... on one value selects them. The reference doesn't say which id an event receives when it straddles two classes.
Source: StrataQuest 8.1 Engines Reference, ch. 4 (pp. 12–14), ch. 8 (p. 375), ch. 36 (pp. 500–501), ch. 20 (p. 428); User Manual (pp. 154, 199, 209).