1 | initial version |
I do think that the idea is correct. However your star has no link. Might want to take a look at histogram of oriented gradients, which does exactly what you want, but which is quite a commonly used technique to do so.
There is no relation between degrees and hue values, but your encoding seems correct, however be aware that you loose precision this way.
I do think so. However what I still do not get is why would one want to calculate gradients of the HSV image rather than the RGB image? In my understanding this transformation does not locate gradients better.