Results 2 issues of Wei Cao

As shown in this figure, when I want to get a canonical shape of such a sequence, how should I deal with the displacement like hair shown in the example?...