How the spatial filters of area V1 can be used for a nearly ideal edge detection