Applying directional filters to detect edges