i need a way to measure the similarity or difference of two point clouds? The number of points in each point cloud can be different. The Point clouds are already aligned. By similarity I mean the similarity of the shapes.
I have already tried the following approaches:
- principal component analysis
- Hausdorff distance
- mean squared distance of the points
- mean distance of the points
All of them didn't work.
I included examples for similar and non similar point clouds.

Here is one method I can think of. Since your point clouds form a curve, create a function from $[0,1]$ to $\Bbb R^2$ out of both point clouds. In essence, "connect the dots". Let's call the function of the first cloud $A$ and the function of the second cloud $B$. So basically, $A(0)$ would be the first point in cloud $A$ and $A(1)$ would be the final point in cloud $A$. $A(0.5)$ would be halfway along the curve.
To measure the similarity, compute the following integral.
$$\int_0^1\|A(x)-B(x)\|dx$$
A value of $0$ means that $A=B$, and everything greater than $0$ indicates some type of dissimilarity. Note that if two curves are somewhat similar, making them longer will increase this value, although their "similarity" should probably stay the same. To make up for this, you could divide the integral by the sum of the lengths of the curves.