Reduced noise in edge detection