1. A system, comprising: a detector configured to obtain multiple images of a sample stained with first and second counterstains, wherein the first and second counterstains have similar spectral absorption and emission profiles; and an electronic processor configured to: decompose the multiple images into an unmixed image set, wherein the unmixed image set comprises a first unmixed image corresponding to the first counterstain and a second unmixed image corresponding to the second counterstain; and identify nuclear regions in the sample based on the first unmixed image and identify cytoplasm regions in the sample based on the second unmixed image.