Take a mask of epithelium: white where epithelium is, black everywhere else. A Distance Map Outside writes into each black pixel how far it is to the nearest white pixel, so the epithelium is the zero reference and the numbers grow as you walk into the stroma. The three engines share that idea and differ in direction, storage and reach. All three sit in a layerLoading...'s Pre-Processing section, under Add Operations (advanced).
Distance Map Outside (global). Seeds is an 8-bit maskLoading... of the areas of interest. Distances are stored as 32-bit values and displayed with the Parula colormap, blue for short distances and red for long ones, so read exact values with the Pixel Inspector. The engine works across fields of view (FOVs), one FOV per iteration, up to Maximum iterations (default 7).
Distance Map Outside (local). It measures in the same direction but stores an 8-bit grayscale map, which the Engines Reference calls less accurate than the global variant. Distances above 255 are approximated with Max scaling. The reference warns that it is not suited to areas of interest one FOV apart.
Distance Map – inside (global). Events is a coded image, and each foreground pixel gets its distance to the closest background pixel: the inner distance from the event's contour. Values are highest deep inside large structures. It works on stitched, global objects and handles macrostructures spanning several FOVs, such as the glomeruli in the reference's kidney example.
Both global engines also take a Mask, and distances are computed only along paths inside its white areas. A path that must stay inside the white area cannot cut across what the mask leaves out, so you can measure distance within tissue instead of straight across an empty gap.