Detection and discrimination of blur in edges and lines