Adaptive Reference Image Set Selection in Automated X-Ray Inspection. (29th December 2014)