What is the most common开发者_JAVA百科 way to get 4 Orientaton maps at 0, 45, 90 and 135 angles from Image. I want to apply orientation kernels. Is that good solution ?
for 0 orientation -1 -1 -1 2 2 2 -1 -1 -1
for 45 orientation -1 -1 2 -1 2 -1 2 -1 -1
for 90 orientation -1 2 -1 -1 2 -1 -1 2 -1
for 135 orientation 2 -1 -1 -1 2 -1 -1 -1 2
Cheers, roboto
Presuming that these are indeed 3x3 kernels, and that by "orientation maps" you mean crude indication of orientation on the smallest scale - yes, this'll do.
If you are not sure what exactly you want, your best shot is to implement these kernels, take a look a the results on a couple of examples, and decide whether you like what you see, and if not, why - and then come back here if you want to.
精彩评论