A CT scan uses X-rays taken from different angles to create detailed images of structures inside the body.