High Resolution 2D Imaging and 3D Scanning with Line Sensors