Detecting edges on the HSV image