When doing per cell measurements or statistics with more than one binary, it is necessary to relate the binaries to their cells. If the relation is 1-1 (or less 0-1, 1-0) like cell-nucleus, cell-membrane, cell-neighborhood then renumbering is a sufficient tool. On the other hand if the relation is 1-N it is a parent-children problem.
In this example we want to measure the number of bacteria inside each cell together with the number of bacteria inside each nucleus.
As nuclei are typically easier to detect (compared to cells), we start by applying Spot Detection to the “DAPI” channel and continue with Region Growing on “GFP”. A new binary named “Cell” is created using the context menu function - Make New Binary Layer. This sequence ensures that we have the same number of cells and nuclei – a perfect 1-1 relation.
Renumbering the cells according to the nuclei makes it easier to join the results in the last step because CellId = NucleusId.