I have two frequency spectrums as shown in the attached picture. The shape of the peaks are similar but they have only slightly shifted in frequency. I want to match the frequencies with similar peaks.
I tried the DP matching algorithm and backtrace the least cost path to find the frequencies that are most similar. I have attached that image too. I was intending to insert/delete/replace the amplitudes of these matching frequencies so that a score can be calculated between these two spectrums such that it is not influenced by these peaks. But seeing the least cost path output, there are some one-to-many mapping between the features (especially from reference to test pattern) which I am unable to understand how to interpret.
Is it possible to extract features that have similar peaks such as in the first picture ? If DP matching can do it, how do I apply the method ?
Thank you.