I'm trying to solve the following problem and will appreciate your help. In the example I have two signals. The 1st is the original signal and the 2nd is a some slightly stretched version of it. The 1st signal I segment into N overlapping windows and for each window I want to find its new length in the 2nd signal in order to know eventually the difference.
As I see, using cross-correlation is not suitable here, because the segmented waveform in the 2nd signal is not the same length as the original.
Using peak detection works only for part of the signal since close to the end the peaks become more and more distorted.
Will be happy for any help.

