Atlas-based template matching to determine knee alignment from plain long-leg radiographs