Deformations detection by a Bayesian approach: prior information representation and testing criteria definition