Accurately estimating rigid transformations in registration using a boosting-inspired mechanism