Image composition as set theory: Gonzalez & Woods describe image combination through set operations. A coded image is a partition of pixel space — each pixel belongs to exactly one region (or background). Combining coded images via union, intersection, and subtraction mirrors Boolean set operations on these partitions. The subtraction operation A − B (all pixels in A but not in B) is how cytoplasmic rings are created: grow by 12 pixels to get the whole cell, subtract the nuclear region, and the remainder is the cytoplasm.
Reconstruction from samples: Hanrahan's signal processing framework applies here conceptually. Each coded image is a "sample" of cell structure from a different perspective — nuclear staining shows nuclei, membrane staining shows boundaries, cytoplasmic staining shows cell bodies. The layer composite "reconstructs" the complete cell model from these partial samples, much as signal reconstruction builds a continuous function from discrete samples.
Why compartments matter biologically: Proteins localize to specific cellular compartments. Ki-67 is nuclear, cytokeratin is cytoplasmic, PD-L1 is membranous. Measuring each biomarker in the wrong compartment dilutes the signal with irrelevant background. A layer composite that correctly assigns each pixel to its compartment maximizes the biological signal-to-noise ratio — the signal comes from where the protein actually is, not from the surrounding volume where it isn't.
Combining coded images uses the same logic as set operations in mathematics — union, subtraction, and intersection. Subtracting the nuclear region from a grown whole-cell region gives you the cytoplasm. This compartmentalization matters because proteins live in specific places in the cell, and measuring them in the right compartment gives you a much cleaner signal.