added option useConstrained to AmbergRegister and gaussMatch