Well, yes, but a line imager only sees a line.
Say that there is a disturbance in the image, e.g. an unwanted reflection near the edge of the ball and on that line, the line imager will be completely confused: The position of the ball will not be measured correct.
In a spatial image most of...