How to separate and detect overlapping curves?

A post was split to a new topic: Overlapping spectra (chromatic aberration?), how to separate?