Descattering for transmissive inspection in production line using slanted linear image sensors