Pulse and staircase models for detecting edges at multiple resolution