implement a hsv feature in matlab