An improved edge detection technique