Build the edge detection filter