add ContoursFromPolyData and modify error_estimation