Line, Spot Detection and Boundary Extraction