Computer vision technology for X-ray testing