Statistical criterion designed to decide if two sampled shapes are the same.
Please acknowledge our the reference paper :
"Statistical criteria for primitive merging" by Alexandre Boulch and Renaud Marlet in International Conference on Pattern Recognition 2014, Stockholm, Sweden
The code for primitive merging is proposed in C++ and Java. The code is given as is.