HSV transform with erosion